/* Casa design tokens and app bar, shared by every tool page. */
:root {
  color-scheme: light;
  --bg: #f7f6f3;
  --panel: #ffffff;
  --subtle: #fbfaf8;
  --ink: #1f2a24;
  --ink-2: #3f4a44;
  --muted: #69716c;
  --faint: #9ba39e;
  --line: #e7e5df;
  --line-strong: #d6d3ca;
  --accent: #2f6b4f;
  --accent-hover: #275a42;
  --accent-soft: #ebf3ee;
  --accent-line: #c4dacb;
  --red: #b4493e;
  --red-soft: #fbefed;
  --warn: #b07a2a;
  --pending: #767168;
  --shadow-sm: 0 1px 2px rgba(31, 42, 36, .05);
  --shadow: 0 1px 2px rgba(31, 42, 36, .04), 0 6px 16px rgba(31, 42, 36, .07);
  --shadow-lg: 0 16px 48px rgba(31, 42, 36, .18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.casa-bar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.casa-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.casa-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
}

.casa-mark svg { width: 17px; height: 17px; }

.casa-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.casa-tabs::-webkit-scrollbar { display: none; }

.casa-tab {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.casa-tab svg { width: 17px; height: 17px; flex: 0 0 auto; }

.casa-tab:hover {
  color: var(--ink);
  background: var(--subtle);
}

.casa-tab[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

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

@media (max-width: 640px) {
  .casa-bar {
    height: 52px;
    gap: 10px;
    padding: 0 12px;
  }

  .casa-tabs { padding-left: 10px; }
  .casa-tab { padding: 0 11px; }
}
