:root {
  color-scheme: dark;
  --fp-bg: #06080d;
  --fp-bg-soft: #0a0f1a;
  --fp-surface: #0d1320;
  --fp-surface-strong: #111827;
  --fp-border: #243044;
  --fp-border-soft: rgba(148, 163, 184, 0.18);
  --fp-text: #e5e7eb;
  --fp-muted: #94a3b8;
  --fp-subtle: #64748b;
  --fp-accent: #67e8f9;
  --fp-accent-soft: rgba(103, 232, 249, 0.12);
  --fp-success: #86efac;
  --fp-warning: #fcd34d;
  --fp-danger: #fda4af;
  --fp-focus: rgba(103, 232, 249, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  position: relative;
  min-height: 100%;
  background: var(--fp-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 28rem),
    linear-gradient(180deg, #070a11 0%, #05070b 46%, #070a11 100%);
  color: var(--fp-text);
  font-family: "IBM Plex Sans", "Noto Sans TC", "Source Han Sans TC", "Microsoft JhengHei UI", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(103, 232, 249, 0.24);
  color: #f8fafc;
}

a {
  text-underline-offset: 0.18em;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--fp-focus);
  outline-offset: 2px;
}

.fp-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fp-skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 0.5rem;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  transition: transform 160ms ease;
}

.fp-skip-link:focus {
  transform: translateY(0);
}

.fp-app-frame {
  border: 1px solid var(--fp-border-soft);
  background: rgba(13, 19, 32, 0.76);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.fp-panel {
  border: 1px solid var(--fp-border-soft);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(10, 15, 26, 0.92));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.fp-panel-muted {
  border: 1px solid var(--fp-border-soft);
  background: rgba(8, 13, 23, 0.82);
}

.fp-table-scroll {
  overflow-x: auto;
  scrollbar-color: #334155 #0f172a;
}

.fp-static-query-layout {
  display: grid;
  gap: 1rem;
  max-width: 100%;
  overflow: hidden;
  align-items: start;
}

.fp-static-query-filter,
.fp-static-query-results {
  min-width: 0;
  max-width: 100%;
}

.fp-static-query-filter input,
.fp-static-query-filter select,
.fp-static-query-filter button {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .fp-static-query-layout {
    grid-template-columns: minmax(14rem, 1fr) minmax(0, 3fr);
    min-height: calc(100vh - 10rem);
    align-items: start;
  }

  .fp-static-query-filter {
    align-self: start;
  }

  .fp-static-query-results {
    min-height: calc(100vh - 10rem);
  }
}

.fp-prose {
  max-width: 72ch;
  color: var(--fp-muted);
  line-height: 1.75;
}

.fp-code {
  scrollbar-color: #334155 #020617;
}

.fp-date-input {
  color-scheme: dark;
}
