/* cossaboon.net house tokens — kb_guide("web_ui"). Paste verbatim; do not edit per app. */
:root {
  color-scheme: dark;

  /* surfaces */
  --bg-top:      #1c1c22;   /* the glow at the top of the page */
  --bg:          #0b0b0e;   /* page background */
  --surface:     #16161c;   /* cards, panels, header bar */
  --surface-2:   #14141a;   /* tiles, inputs, table stripes */
  --border:      #2c2c38;
  --border-soft: #26262e;

  /* text */
  --text:        #e8e8ec;
  --muted:       #9a9aa2;   /* secondary text, descriptions */
  --faint:       #6a6a72;   /* footer, timestamps */

  /* accent + status */
  --accent:      #7aa2ff;   /* links, focus, hover borders, primary buttons */
  --ok:          #8fd98f;
  --warn:        #e0c88f;
  --bad:         #f08a8a;

  /* optional section hues: tint tiles or tags by category */
  --hue-purple:  #c08fe0;
  --hue-green:   #8fd98f;
  --hue-amber:   #e0c88f;

  /* shape + type */
  --radius:      16px;
  --radius-sm:   10px;
  --font:        system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:        ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(circle at 50% -10%, var(--bg-top), var(--bg) 60%) fixed;
  background-color: var(--bg);
}
main   { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }
a      { color: var(--accent); }
.card  { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.4rem; }
.muted { color: var(--muted); }
input, select, textarea, button {
  font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .5rem .75rem;
}
button.primary { background: var(--accent); border-color: var(--accent); color: #0b0b0e; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; padding: .6rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border-soft); }
.site-header .brand { display: flex; align-items: center; gap: .55rem; color: var(--text);
  text-decoration: none; font-weight: 700; }
.site-header .brand img { width: 28px; height: 28px; border-radius: 6px; }
.site-header nav { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: .35rem .6rem; border-radius: 8px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-header .help { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border); color: var(--muted); text-decoration: none; font-weight: 700; }
.site-header .help:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 640px) {            /* phone: name + ? on top, menu on its own row */
  .site-header .help { margin-left: auto; }
  .site-header nav   { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
}

/* footer */
.site-footer { text-align: center; padding: 1.5rem 1rem 2rem; font-size: .8rem; color: var(--faint); }
.site-footer a { color: var(--faint); }
