:root {
  --bg0: #f6f2ea;
  --bg1: #fff7f0;
  --ink: #1f2937;
  --muted: #5b6473;
  --card: rgba(255, 255, 255, 0.72);
  --card2: rgba(255, 255, 255, 0.88);
  --stroke: rgba(31, 41, 55, 0.12);
  --shadow: 0 18px 50px rgba(31, 41, 55, 0.14);
  --accent: #1f7a67;
  --accent2: #d55b3f;
  --warn: #b45309;
  --radius: 18px;
  --radius2: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(900px 650px at 10% 5%, #fff, transparent 60%),
    radial-gradient(800px 520px at 90% 10%, #fff, transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.55;
  transform: translateZ(0);
}
.b1 {
  background: radial-gradient(circle at 30% 30%, rgba(31, 122, 103, 0.55), transparent 65%);
  left: -180px;
  top: -160px;
}
.b2 {
  background: radial-gradient(circle at 40% 40%, rgba(213, 91, 63, 0.5), transparent 65%);
  right: -220px;
  top: 90px;
}
.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.18;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 8px;
  max-width: 1040px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}
.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(31, 122, 103, 0.22), rgba(213, 91, 63, 0.16));
  border: 1px solid rgba(31, 41, 55, 0.1);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand__name {
  font-weight: 850;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}
.tab {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  padding: 10px 14px;
  border-radius: 999px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.tab:hover {
  background: rgba(31, 122, 103, 0.12);
  color: var(--ink);
}
.tab.isActive {
  background: rgba(31, 122, 103, 0.18);
  color: var(--ink);
  transform: translateY(-1px);
}

.app {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 18px 30px;
}

.grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  align-items: start;
}

.panel {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.panel__hd {
  padding: 14px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4));
}
.panel__title {
  font-weight: 800;
}
.panel__sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.panel__bd {
  padding: 14px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.14);
  background: rgba(255, 255, 255, 0.75);
  outline: none;
  font-size: 14px;
}
.input:focus {
  border-color: rgba(31, 122, 103, 0.5);
  box-shadow: 0 0 0 5px rgba(31, 122, 103, 0.12);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  font-weight: 650;
  font-size: 13px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 122, 103, 0.35);
}
.pill.isOn {
  background: rgba(31, 122, 103, 0.16);
  border-color: rgba(31, 122, 103, 0.35);
}
.pill__meta {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sectionLabel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 8px;
}
.sectionLabel__name {
  font-weight: 800;
}
.sectionLabel__hint {
  font-size: 12px;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 10px;
}
.card {
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: var(--radius2);
  background: var(--card2);
  padding: 12px;
  display: grid;
  gap: 8px;
}
.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.card__name {
  font-weight: 850;
  letter-spacing: 0.01em;
}
.card__meta {
  color: var(--muted);
  font-size: 12px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.1);
  background: rgba(31, 122, 103, 0.1);
}
.badge.isWarm {
  background: rgba(213, 91, 63, 0.1);
}
.btnRow {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  appearance: none;
  border: 1px solid rgba(31, 41, 55, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 750;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.65);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 122, 103, 0.35);
}
.btn.isPrimary {
  background: rgba(31, 122, 103, 0.16);
  border-color: rgba(31, 122, 103, 0.35);
}
.btn.isDanger {
  background: rgba(213, 91, 63, 0.12);
  border-color: rgba(213, 91, 63, 0.35);
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.modal {
  width: min(720px, calc(100% - 26px));
  border: 1px solid rgba(31, 41, 55, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 26px 90px rgba(31, 41, 55, 0.22);
  padding: 0;
}
.modal::backdrop {
  background: rgba(31, 41, 55, 0.28);
}
.modal__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.1);
}
.modal__title {
  font-weight: 900;
}
.modal__bd {
  padding: 14px;
}
.iconBtn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.14);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.stars {
  display: flex;
  gap: 6px;
  align-items: center;
}
.starBtn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(31, 41, 55, 0.14);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.starBtn.isOn {
  border-color: rgba(180, 83, 9, 0.55);
  background: rgba(180, 83, 9, 0.12);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(31, 41, 55, 0.14);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(31, 41, 55, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  max-width: min(640px, calc(100% - 26px));
}
.toast.isOn {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
  pointer-events: auto;
}

@media (max-width: 860px) {
  .top {
    flex-direction: column;
    align-items: stretch;
  }
  .tabs {
    justify-content: space-between;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

