/* Shared Noodlebit site styles (home and profile). */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f1f3f6; --ink: #111318; --muted: #5d6470; --line: #e3e5e9;
  --shadow: #3b404a; --board: #eceef1; --board-line: #dfe2e7; --link: #3a5bdc; --danger: #c0362c;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101216; --surface: #181b20; --surface-2: #22262d; --ink: #eef0f3; --muted: #9aa2ad; --line: #2a2f36;
    --shadow: #8b919c; --board: #1c1f25; --board-line: #262a31; --link: #8ea6ff; --danger: #ff7a70; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101216; --surface: #181b20; --surface-2: #22262d; --ink: #eef0f3; --muted: #9aa2ad; --line: #2a2f36;
  --shadow: #8b919c; --board: #1c1f25; --board-line: #262a31; --link: #8ea6ff; --danger: #ff7a70; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans);
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(16px, env(safe-area-inset-left, 0px));
  min-height: 100vh; display: flex; flex-direction: column;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.topnav { width: 100%; max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 0; min-height: 54px; }
.topnav .back { color: var(--muted); font-weight: 700; text-decoration: none; }
.topnav .back:hover { color: var(--ink); }
.userbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; max-width: 60vw; }
.userbtn:hover { border-color: var(--muted); }
.userbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn { height: 46px; border-radius: 12px; font-weight: 700; font-size: .95rem; padding: 0 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn.primary { border: 0; background: var(--ink); color: var(--bg); box-shadow: 0 3px 0 var(--shadow); }
.btn:disabled { opacity: .5; cursor: default; }
.tabs { display: inline-flex; gap: 2px; background: var(--surface-2); border-radius: 10px; padding: 3px; justify-self: start; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; border-radius: 7px; padding: 0 14px; height: 34px; font-weight: 700; font-size: .88rem; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.field { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; }
.field input { font: inherit; font-weight: 500; font-size: 1rem; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; }
.err { color: var(--danger); font-size: .9rem; margin: 0; min-height: 1.2em; }
.muted { color: var(--muted); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.google-btn:hover { border-color: var(--muted); }
.or { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; color: var(--muted); font-size: .8rem; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 14px; }
