/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* ========================================================
 * DotHunt design tokens — light by default, auto dark mode.
 * Mobile-first; spacing on a 4px grid.
 * ====================================================== */

:root {
  /* Brand */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-500: #4f46e5;   /* primary */
  --brand-600: #4338ca;
  --brand-700: #3730a3;

  /* Semantic */
  --success-50:  #ecfdf5;
  --success-500: #10b981;
  --success-700: #047857;
  --warning-50:  #fffbeb;
  --warning-500: #f59e0b;
  --warning-700: #b45309;
  --danger-50:   #fef2f2;
  --danger-500:  #ef4444;
  --danger-700:  #b91c1c;

  /* Surfaces */
  --bg:        #f8fafc;
  --bg-elev:   #ffffff;
  --bg-muted:  #f1f5f9;
  --border:    #e2e8f0;
  --border-strong: #cbd5e1;

  /* Text */
  --text:       #0f172a;
  --text-muted: #64748b;
  --text-soft:  #94a3b8;
  --text-on-brand: #ffffff;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.04);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* Typography */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-lg:   18px;
  --fs-xl:   22px;
  --fs-2xl:  28px;
  --fs-3xl:  34px;

  /* Layout */
  --content-max: 640px;
  --bottom-safe: env(safe-area-inset-bottom, 0);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b1220;
    --bg-elev:   #111a2e;
    --bg-muted:  #162038;
    --border:    #1f2a44;
    --border-strong: #2c3a5c;
    --text:       #e2e8f0;
    --text-muted: #94a3b8;
    --text-soft:  #64748b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
               "Noto Sans TC", "Microsoft JhengHei", Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--brand-500); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- shell ---- */
.app {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px 16px calc(96px + var(--bottom-safe));
  min-height: 100dvh;
}

.app-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  margin: -16px -16px 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.app-bar__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-bar__title::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: var(--shadow-sm);
}
.app-bar__actions { display: flex; gap: 6px; }

/* ---- typography helpers ---- */
.h-display { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.h-title   { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; }
.h-section { font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase;
             color: var(--text-muted); letter-spacing: 0.06em; margin: 24px 0 8px; }
.muted { color: var(--text-muted); }
.soft  { color: var(--text-soft); }
.mono  { font-feature-settings: "tnum" 1, "tnum"; font-variant-numeric: tabular-nums; }

/* ---- card ---- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  margin: 12px 0;
}
.card--flat   { box-shadow: none; }
.card--hero   { padding: 20px; border-radius: var(--r-xl); }
.card--accent { border-color: var(--brand-100); background: linear-gradient(180deg, var(--brand-50), var(--bg-elev) 70%); }
@media (prefers-color-scheme: dark) {
  .card--accent { background: linear-gradient(180deg, color-mix(in srgb, var(--brand-500) 18%, var(--bg-elev)), var(--bg-elev) 70%); border-color: color-mix(in srgb, var(--brand-500) 30%, var(--border)); }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--fs-base);
  min-height: 44px;
  transition: transform 0.04s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; }

.btn--primary { background: var(--brand-500); color: var(--text-on-brand); }
.btn--primary:hover:not(:disabled) { background: var(--brand-600); }
.btn--primary:disabled { background: var(--bg-muted); color: var(--text-soft); }

.btn--secondary { background: var(--bg-elev); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover:not(:disabled) { background: var(--bg-muted); }

.btn--ghost { background: transparent; color: var(--brand-500); }
.btn--ghost:hover { background: var(--brand-50); }

.btn--danger { background: var(--danger-500); color: #fff; }
.btn--danger:hover:not(:disabled) { background: var(--danger-700); }

.btn--block { width: 100%; }
.btn--lg { padding: 14px 22px; font-size: var(--fs-lg); min-height: 52px; }

/* Sticky bottom action bar — for primary "submit" on mobile */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px calc(12px + var(--bottom-safe));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--border);
  z-index: 15;
}
.action-bar > .btn { width: 100%; }
.action-bar__inner { max-width: var(--content-max); margin: 0 auto; }

/* ---- input ---- */
.field { margin: 14px 0; }
.field__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field__hint { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px; }
.field__required { color: var(--danger-500); }

.input, .select, .textarea {
  width: 100%;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 11px 12px;
  font-size: var(--fs-base);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 20%, transparent);
}
.textarea { resize: vertical; min-height: 80px; }

/* ---- chip / pill / badge ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-muted);
  color: var(--text);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  border: 1px solid var(--border);
}
.chip--brand   { background: var(--brand-50);    color: var(--brand-700);    border-color: var(--brand-100); }
.chip--success { background: var(--success-50);  color: var(--success-700);  border-color: color-mix(in srgb, var(--success-500) 25%, var(--border)); }
.chip--warning { background: var(--warning-50);  color: var(--warning-700);  border-color: color-mix(in srgb, var(--warning-500) 25%, var(--border)); }
.chip--danger  { background: var(--danger-50);   color: var(--danger-700);   border-color: color-mix(in srgb, var(--danger-500) 25%, var(--border)); }
@media (prefers-color-scheme: dark) {
  .chip--brand   { background: color-mix(in srgb, var(--brand-500) 18%, transparent); color: #c7d2fe; }
  .chip--success { background: color-mix(in srgb, var(--success-500) 18%, transparent); color: #a7f3d0; }
  .chip--warning { background: color-mix(in srgb, var(--warning-500) 18%, transparent); color: #fde68a; }
  .chip--danger  { background: color-mix(in srgb, var(--danger-500) 18%, transparent); color: #fecaca; }
}

/* Choice group — segmented toggle for the observation form */
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
  min-height: 36px;
}
.choice:hover { background: var(--bg-muted); }
.choice--active {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: var(--text-on-brand);
}
.choice--active:hover { background: var(--brand-600); }

/* ---- step indicator ---- */
.steps {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  list-style: none;
  padding: 0;
}
.step {
  flex: 1 1;
  height: 4px;
  background: var(--border);
  border-radius: var(--r-full);
  transition: background 0.2s;
}
.step--done   { background: var(--brand-500); }
.step--active { background: linear-gradient(90deg, var(--brand-500) 50%, var(--border) 50%); }

/* ---- list item ---- */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }
.list-item__body { flex: 1 1; min-width: 0; }
.list-item__title { font-weight: 600; font-size: var(--fs-base); margin: 0; }
.list-item__meta  { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 2px;
                    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item__right { text-align: right; flex-shrink: 0; }

/* ---- toast / inline alert ---- */
.alert {
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin: 10px 0;
  border: 1px solid;
}
.alert--ok     { background: var(--success-50); color: var(--success-700); border-color: color-mix(in srgb, var(--success-500) 35%, var(--border)); }
.alert--err    { background: var(--danger-50);  color: var(--danger-700);  border-color: color-mix(in srgb, var(--danger-500) 35%, var(--border));  }
.alert--info   { background: var(--brand-50);   color: var(--brand-700);   border-color: var(--brand-100); }
.alert--warn   { background: var(--warning-50); color: var(--warning-700); border-color: color-mix(in srgb, var(--warning-500) 35%, var(--border)); }
@media (prefers-color-scheme: dark) {
  .alert--ok   { background: color-mix(in srgb, var(--success-500) 12%, var(--bg-elev)); color: #a7f3d0; }
  .alert--err  { background: color-mix(in srgb, var(--danger-500) 12%, var(--bg-elev));  color: #fecaca; }
  .alert--info { background: color-mix(in srgb, var(--brand-500) 12%, var(--bg-elev));   color: #c7d2fe; }
  .alert--warn { background: color-mix(in srgb, var(--warning-500) 12%, var(--bg-elev)); color: #fde68a; }
}

/* ---- utilities ---- */
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--stack-gap, 12px); }
.stack--lg { --stack-gap: 20px; }
.row { display: flex; align-items: center; gap: 8px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1 1; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 12px; gap: 12px; }
.hide-empty:empty { display: none; }

/* stat block (me page hero) */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__label { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat__value { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.02em; }
.stat__value--brand { color: var(--brand-500); }
.stat__value--success { color: var(--success-700); }

/* hero — used on login + me top */
.hero {
  text-align: center;
  padding: 32px 8px 16px;
}
.hero__logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  margin: 0 auto 16px;
  box-shadow: var(--shadow-md);
}

/* google sign-in container — keep button centered */
.gis-wrap { display: flex; justify-content: center; margin: 8px 0; }

/* ============================================================
 * SHELL LAYOUT: sidebar + main, mobile drawer
 * ============================================================ */

.layout {
  display: flex;
  min-height: 100dvh;
}

.layout__main {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.layout__content {
  flex: 1 1;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 20px calc(100px + var(--bottom-safe));
}

@media (max-width: 768px) {
  .layout__content { padding: 16px 16px calc(96px + var(--bottom-safe)); }
}

/* ---- Top bar (always visible) ---- */
.topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) { .topbar { padding: 10px 14px; } }

.topbar__menu {
  background: transparent;
  border: none;
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar__menu:hover { background: var(--bg-muted); }
@media (min-width: 769px) { .topbar__menu { display: none; } }

.topbar__title { font-size: var(--fs-lg); font-weight: 700; margin: 0; flex: 1 1; letter-spacing: -0.01em; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }

/* ---- Sidebar ---- */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar__logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: var(--shadow-sm);
}
.sidebar__brand-name { font-weight: 800; letter-spacing: -0.01em; font-size: var(--fs-lg); }
.sidebar__brand-sub  { font-size: var(--fs-xs); color: var(--text-muted); margin-top: -2px; }

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
  flex: 1 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background 0.12s;
}
.nav-item:hover { background: var(--bg-muted); text-decoration: none; }
.nav-item--active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .nav-item--active { background: color-mix(in srgb, var(--brand-500) 18%, transparent); color: #c7d2fe; }
}

.sidebar__user {
  padding: 12px 8px 4px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.sidebar__user-name { font-weight: 600; font-size: var(--fs-sm); }
.sidebar__user-meta { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.4; margin-top: 2px; }

/* Mobile: sidebar becomes a drawer */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 50;
    box-shadow: var(--shadow-lg);
  }
  .sidebar--open { transform: translateX(0); }
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 40;
  animation: fade-in 0.15s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 769px) {
  .drawer-backdrop { display: none; }
}

/* ---- Empty-state ---- */
.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}
.empty__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-lg);
  background: var(--bg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--text-soft);
}
.empty__title { font-size: var(--fs-base); font-weight: 600; color: var(--text); margin: 0 0 4px; }
.empty__sub   { font-size: var(--fs-sm); margin: 0 0 16px; }

