:root {
  --accent: #7c3aed; --accent2: #a78bfa; --bg: #faf5ff; --card: #ffffff;
  --text: #2e1065; --muted: #71717a; --border: #e4e4e7; --ok: #16a34a; --danger: #dc2626;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, sans-serif;
  background: var(--bg); color: var(--text);
}
.app-header {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; padding: env(safe-area-inset-top) 0 0;
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.app-header h1 { margin: 0; font-size: 1.25rem; }
.logout-btn {
  background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 0.8rem; cursor: pointer;
}
.tabs { display: flex; gap: 4px; padding: 0 8px 8px; }
.tab {
  flex: 1; border: none; background: transparent; color: rgba(255, 255, 255, 0.7);
  padding: 10px 8px; font-size: 0.9rem; font-weight: 600; border-radius: 10px 10px 0 0;
  border-bottom: 3px solid transparent; cursor: pointer;
}
.tab.is-active { color: #fff; background: rgba(255, 255, 255, 0.12); border-bottom-color: #fff; }

main { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
.view { display: none; }
.view.is-active { display: block; }

.card { background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(46, 16, 101, 0.06); }
