/* Shared with ctool/frontend/src/index.css. */
@font-face {
  font-family: "Solanel";
  src: url("/assets/fonts/solanel-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Solanel";
  src: url("/assets/fonts/solanel-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Solanel";
  src: url("/assets/fonts/solanel-regularitalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Orion";
  src: url("/assets/fonts/MGDOrion-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --font-sans: "Solanel", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --font-serif: "Orion", serif;
  --background: #fff;
  --foreground: #2e2e2e;
  --card: #fff;
  --primary: #fffcab;
  --primary-foreground: #2e2e2e;
  --secondary: #e9e9e9;
  --secondary-foreground: #2e2e2e;
  --muted: #e9e9e9;
  --muted-foreground: #737373;
  --accent: #e9e9e9;
  --border: #d9d9d9;
  --input: #d9d9d9;
  --ring: #a1a1aa;
  --radius: 0.375rem;
  --code-background: #f6f6f6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 15px/1.65 var(--font-sans);
}
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}
::selection { background: var(--primary); color: var(--foreground); }
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  padding-inline: 24px;
  background: var(--background);
}
.app-header .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  max-width: 1240px;
  margin-inline: auto;
  border-bottom: 1px solid var(--foreground);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo { display: block; flex-shrink: 0; width: 36px; height: 39px; object-fit: contain; }
.wordmark-label > span { font-weight: 400; }
.app-header nav { display: flex; align-items: center; gap: 12px; }
.app-header nav a, .app-header nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.app-header nav a:hover, .app-header nav button:hover { background: var(--muted); }
.app-header nav button:disabled { cursor: wait; opacity: 0.65; }
#session-status { position: fixed; right: 20px; bottom: 20px; z-index: 30; max-width: calc(100% - 40px); margin: 0; padding: 8px 14px; border-radius: var(--radius); color: var(--background); background: var(--foreground); font-size: 13px; }
#session-status:empty { display: none; }
.button, .copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--foreground);
  border-radius: var(--radius);
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease;
}
.button:hover, .copy:hover { background: var(--muted); }
.button.primary { background: var(--primary); }
.button.primary:hover { background: #fffed0; }
@media (max-width: 600px) {
  .app-header { padding-inline: 16px; }
  .app-header .topbar { flex-wrap: wrap; gap: 4px 8px; padding-block: 12px; }
  .wordmark { gap: 8px; font-size: 17px; }
  .brand-logo { width: 30px; height: 33px; }
  .app-header nav { gap: 2px; }
  .app-header nav a, .app-header nav button { padding: 4px 6px; font-size: 12px; }
}
@media (max-width: 360px) {
  .app-header .topbar { flex-wrap: wrap; padding-block: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
