:root {
  --bg: #f3efe6;
  --bg-deep: #e8e0d0;
  --surface: #fffcf7;
  --ink: #1c1914;
  --ink-muted: #5c564c;
  --line: #d4cbb8;
  --accent: #0f6b5c;
  --accent-soft: #d8efe9;
  --danger: #9b2c2c;
  --danger-soft: #f8e4e4;
  --warn: #8a5a00;
  --warn-soft: #f7ecd2;
  --ok: #1f6b3a;
  --ok-soft: #dff3e6;
  --shadow: 0 12px 40px rgba(28, 25, 20, 0.08);
  --radius: 14px;
  --font: 'DM Sans', system-ui, sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --sidebar-w: 240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #dceee8 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #f0e4c8 0%, transparent 50%),
    var(--bg);
}

body {
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

#app {
  min-height: 100vh;
}

#toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

#q-alert-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1001;
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

#q-alert-root[hidden] {
  display: none !important;
}

.q-alert {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #1c1917;
  color: #fff;
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.28);
  animation: toast-in 0.22s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.q-alert__pulse {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55);
  animation: q-nav-glow 1.4s ease-out infinite;
  flex-shrink: 0;
}

.q-alert__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.q-alert__body strong {
  font-size: 0.95rem;
}

.q-alert__body span {
  opacity: 0.78;
  font-size: 0.82rem;
}

.q-alert__actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.q-alert__actions .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
