/* support.liquidium.org page. The chat itself is the <liquidium-support> widget (own shadow-DOM styles). */
:root {
  color-scheme: light dark;
  --bg: #f6f6f4;
  --panel: #ffffff;
  --text: #0b0b0b;
  --muted: #6b6b6b;
  --border: #e4e4e1;
  --accent: #0066ff;
  --tile: #f1f1ef;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #070707; --panel: #0f0f0f; --text: #f5f5f5; --muted: #8f8f8f; --border: #232323; --accent: #2c81ff; --tile: #161616; }
}
body[data-product="wtf"] { --accent: oklch(0.665 0.207 37.8); }
body[data-product="staking"] { --accent: #f97316; }
@media (prefers-color-scheme: dark) {
  body[data-product="wtf"] { --bg: oklch(0.105 0 0); --panel: oklch(0.14 0 0); --border: oklch(0.26 0 0); }
}
body[data-product="staking"] { --bg: #000; --panel: #090909; --text: #fafaf9; --muted: #a8a29e; --border: rgba(255,255,255,.1); --tile: #141211; color-scheme: dark; }
@media (prefers-color-scheme: light) {
  body[data-product="wtf"] { --bg: oklch(0.962 0.006 84.6); --panel: oklch(0.99 0.003 95.1); --border: oklch(0.895 0.011 84.6); --text: oklch(0.219 0.007 78.2); --muted: oklch(0.478 0.018 76.9); --tile: oklch(0.944 0.008 84.6); }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease;
}
a { color: inherit; }
button { font: inherit; color: inherit; }

.shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 20px;
  height: 100vh;
  height: 100dvh;
  padding: 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.side {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 10px 8px 10px 4px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.intro h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.intro p { margin: 0; color: var(--muted); max-width: 34em; }
.label { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.picker { display: flex; flex-direction: column; gap: 8px; }
.product {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px 12px 12px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.product:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--border)); transform: translateY(-1px); box-shadow: 0 10px 24px -18px rgba(0,0,0,.45); }
.product[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.product[data-last] .chev::after { content: "Last used"; font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.product .logo { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--tile); }
.product .logo img { width: 30px; height: 30px; }
.product .logo.fi { background: none; }
.product .logo.fi img { width: 44px; height: 44px; border-radius: 13px; }
.product .logo.staking { background: linear-gradient(180deg, #1c1917, #000); }
.product .logo.staking img { width: 26px; height: 26px; }
.product .txt { flex: 1; min-width: 0; }
.product .txt b { display: block; font-size: 15.5px; letter-spacing: -0.01em; }
.product .txt span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.product .chev { font-size: 22px; color: var(--muted); display: flex; align-items: center; }
.hint { margin: 2px 4px 0; font-size: 12.5px; color: var(--muted); }

.docs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.docs a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border);
  text-decoration: none; font-size: 13.5px; background: var(--panel);
}
.docs a::after { content: "↗"; color: var(--muted); font-size: 12px; }
.docs a:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--border)); }

.security {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 16px;
  background: color-mix(in srgb, #f5a524 12%, var(--panel));
  border: 1px solid color-mix(in srgb, #f5a524 35%, var(--border));
  font-size: 13.5px; margin-top: auto;
}
.security svg { width: 20px; height: 20px; flex: none; color: #d98b00; margin-top: 1px; }
.security b { display: block; margin-bottom: 2px; }
.security span { color: var(--muted); }
.security code { font-size: 12.5px; padding: 0 4px; border-radius: 5px; background: var(--tile); }

.chat-area {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.35);
}
body[data-product="staking"] .chat-area { border-radius: 18px; }
.chat-top { display: none; }
.chat { flex: 1; min-height: 0; }
.placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  color: var(--muted); text-align: center; padding: 24px;
}
.placeholder img { opacity: .9; border-radius: 12px; }
body[data-stage="chat"] .placeholder { display: none; }
.noscript { position: fixed; inset: auto 20px 20px; padding: 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 860px) {
  .shell { display: block; padding: 0; height: auto; min-height: 100dvh; }
  .side { padding: 22px 18px 28px; gap: 22px; }
  .security { margin-top: 0; }
  .chat-area { display: none; }
  body[data-stage="chat"] .side { display: none; }
  body[data-stage="chat"] .chat-area {
    display: flex; position: fixed; inset: 0; border-radius: 0; border: 0; box-shadow: none;
  }
  .chat-top {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--border); background: var(--panel);
  }
  .back { border: 0; background: none; font-weight: 600; padding: 8px; cursor: pointer; }
  .switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tile); }
  .switch button { border: 0; background: none; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
  .switch button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
}
