:root {
  --bg: #0b1026;
  --panel: #12182a;
  --card: #151d34;
  --text: #f1f5f9;
  --muted: #cbd5f5;
  --subtle: #94a3b8;
  --border: #243055;
  --primary: #22d3ee;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #f87171;
  font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: radial-gradient(1200px 800px at 50% -20%, #1f2a4d, var(--bg));
  color: var(--text);
  line-height: 1.6;
}

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0.875rem 5.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.25rem;
}

.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__title {
  font-size: 1.375rem;
  font-weight: 700;
}

.header__subtitle {
  color: var(--subtle);
  font-size: 0.95rem;
}

.text-subtle {
  color: var(--subtle);
  font-size: 0.875rem;
}

.banner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.6);
  border-radius: 0.75rem;
  color: var(--warning);
  font-size: 0.85rem;
}

.banner__btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  align-self: flex-start;
}

.nav {
  position: fixed;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 1.25rem));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.375rem;
  padding: 0.375rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 30px 60px -40px var(--primary);
  z-index: 5;
}

.nav__btn {
  border: none;
  background: transparent;
  color: var(--subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0;
  border-radius: 999px;
  font-size: 0.8rem;
}

.nav__btn.is-active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.25), rgba(15, 23, 42, 0));
}

.nav--5 {
  grid-template-columns: repeat(5, 1fr);
}

.view {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.view.is-active {
  display: flex;
}

.card {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.16), rgba(21, 29, 52, 0));
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: 0 60px 120px -80px var(--primary);
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.5rem;
}

.card__title {
  font-weight: 600;
}

.card__subtitle {
  color: var(--subtle);
  font-size: 0.875rem;
  margin-top: 0.125rem;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0 1rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field__label {
  font-size: 0.875rem;
  color: var(--muted);
}

.field__input,
.field__select,
.field__textarea {
  border: 1px solid var(--border);
  background: rgba(11, 16, 38, 0.8);
  color: var(--text);
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.95rem;
}

.field__textarea {
  min-height: 4rem;
  resize: vertical;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.btn {
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.9), rgba(14, 165, 233, 0.9));
  color: #0b1026;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.625rem 1rem;
  font-size: 0.95rem;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.list__item {
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  background: rgba(21, 29, 52, 0.8);
}

.list__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.list__title {
  font-weight: 600;
}

.list__meta {
  color: var(--subtle);
  font-size: 0.875rem;
}

.list__row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.list__row--strong {
  color: var(--text);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  color: var(--subtle);
}

.badge--warn {
  border-color: rgba(245, 158, 11, 0.6);
  color: var(--warning);
}

.badge--danger {
  border-color: rgba(248, 113, 113, 0.6);
  color: var(--danger);
}

.badge--success {
  border-color: rgba(34, 197, 94, 0.6);
  color: var(--success);
}

.empty {
  text-align: center;
  color: var(--subtle);
  padding: 1rem 0.5rem;
}

.hidden {
  display: none !important;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
