*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-0);
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-1);
  min-height: 100dvh;
  padding-bottom: calc(var(--fab-h) + env(safe-area-inset-bottom) + 80px);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
input, textarea { font: inherit; color: inherit; background: none; border: none; outline: none; }
textarea { resize: vertical; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.hidden { display: none !important; }

/* App shell layout */
#app-root {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

#view-root {
  flex: 1;
}

/* Export warning banner */
.export-warning {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(251,191,36,.12);
  border-bottom: 1px solid rgba(251,191,36,.25);
  color: #fbbf24;
  font-size: 14px;
}
.export-warning .link-btn {
  margin-left: auto;
  text-decoration: underline;
  opacity: .9;
}

/* App header */
.app-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: var(--header-h);
  padding: 0 var(--sp-4);
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-0);
  z-index: 10;
}

.app-title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.header-actions {
  display: flex;
  gap: var(--sp-1);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  color: var(--text-3);
  font-size: 15px;
}
