/* Tandem Glass - shared base for the browser workspace. Colours come from palette.css
   (generated from design/palette.json, the same palette as the native desktop). */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
:root {
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-edge: rgba(15, 23, 42, 0.08);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 30px rgba(16, 24, 40, 0.14), 0 1px 3px rgba(16, 24, 40, 0.08);
  --blur: saturate(180%) blur(28px);
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--fg); font: 13.5px/1.45 var(--font-ui); -webkit-font-smoothing: antialiased; letter-spacing: -0.003em;
  background: #9fbff5 url("/wallpaper.jpg") center / cover fixed;
}
body::before { /* frosted wash over the wallpaper so content stays legible */
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(243,244,247,.35), rgba(243,244,247,.55));
  backdrop-filter: blur(40px) saturate(140%); -webkit-backdrop-filter: blur(40px) saturate(140%);
}
button, input, select, textarea { font: inherit; color: inherit; }
.glass {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--glass-edge); background: rgba(255,255,255,.75); cursor: pointer;
  font-weight: 600; font-size: 13px; white-space: nowrap; transition: background .15s, transform .08s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .icon-btn:focus-visible, .seg button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-fg); box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-human { background: var(--human); border-color: transparent; color: var(--human-fg); box-shadow: 0 2px 8px color-mix(in srgb, var(--human) 40%, transparent); }
.btn-human:hover { background: color-mix(in srgb, var(--human) 88%, black); }
.icon-btn {
  width: 32px; height: 32px; border-radius: 999px; border: none; background: transparent; cursor: pointer;
  display: inline-grid; place-items: center; color: var(--fg-muted); transition: background .15s, color .15s;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: rgba(15,23,42,.07); color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }
.mark { width: 24px; height: 24px; display: block; }
input[type=text], input[type=password], textarea, select {
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.85); border-radius: var(--r-sm); padding: 7px 10px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
[hidden] { display: none !important; }
