:root {
  --ink: rgba(0, 0, 0, 0.95);
  --muted: rgba(51, 51, 51, 0.7);
  --ground: #ffffff;
  --accent: rgb(120, 148, 54);
  --accent-ink: #ffffff;
  --accent-soft: rgba(120, 148, 54, 0.1);
  --line: rgba(0, 0, 0, 0.08);
  --field: rgba(0, 0, 0, 0.05);
  --hover: rgba(0, 0, 0, 0.03);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--ground);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.i {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: none;
}

.i.small {
  width: 14px;
  height: 14px;
}

.i svg,
.chevron svg {
  width: 100%;
  height: 100%;
}

.bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--ground);
  z-index: 3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  flex: 1 1 0;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.spacer {
  flex: 1 1 0;
}

.tabs {
  display: flex;
  gap: 4px;
  align-items: center;
}

.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.tab:hover {
  background: var(--hover);
}

.tab.active {
  background: var(--field);
  color: var(--ink);
}

.more-wrap {
  position: relative;
}

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 4;
}

.menu-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
}

.menu-item:hover {
  background: var(--hover);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.center-link {
  display: flex;
  justify-content: center;
  padding: 18px 0;
}

.accent-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
}

.accent-link.small {
  font-weight: 500;
}

.panel {
  background: var(--accent);
  color: var(--accent-ink);
  margin: 8px calc(50% - 50vw) 0;
  padding: 20px 16px 48px;
}

.panel-inner {
  max-width: 648px;
  margin: 0 auto;
}

.tip {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 14px;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.date {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.date input {
  flex: 1;
  border: none;
  background: none;
  color: var(--accent-ink);
  color-scheme: dark;
  outline: none;
}

.hint {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 6px;
}

.panel .check {
  margin-top: 18px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.panel .check input {
  accent-color: #ffffff;
}

.done {
  margin-top: 18px;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--accent-ink);
  color: var(--accent);
  font-weight: 600;
}

.panel h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}

.panel p {
  margin: 0 0 16px;
  opacity: 0.85;
  font-size: 13px;
}

.copyright {
  display: block;
  width: 100%;
  border-radius: 10px;
  background: #ffffff;
}

.showing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 4px;
}

.list-head h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.count {
  font-size: 12px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--field);
  color: var(--muted);
}

.controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--field);
  color: var(--muted);
}

.search input {
  border: none;
  background: none;
  outline: none;
  width: 220px;
  color: var(--ink);
}

.filter.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.filter-wrap {
  position: relative;
}

.filters {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 320px;
  max-height: 70vh;
  overflow: auto;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 12px 14px;
  z-index: 2;
}

.filters fieldset {
  border: none;
  padding: 0;
  margin: 0 0 14px;
}

.filters legend {
  font-weight: 600;
  margin-bottom: 6px;
}

.filters .check {
  padding: 4px 0;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  position: sticky;
  bottom: -12px;
  background: var(--ground);
  padding: 8px 0;
}

.filter-actions button {
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.filter-actions .plain {
  color: var(--muted);
}

.filter-actions .primary,
.more {
  background: var(--accent);
  color: var(--accent-ink);
}

.group h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 4px;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.row:hover {
  background: var(--hover);
}

.thumb {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--field);
}

.missing {
  visibility: hidden;
}

.text {
  flex: 1;
  min-width: 0;
}

.overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

.title {
  font-weight: 600;
}

.body {
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.body a,
.detail a {
  color: var(--accent);
  text-decoration: underline;
}

.chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.more {
  display: block;
  margin: 20px auto 0;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}

.none {
  color: var(--muted);
  text-align: center;
  padding: 48px 0;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  color: var(--muted);
}

.crumbs .back {
  color: var(--accent);
  font-weight: 600;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs .here {
  color: var(--ink);
}

.hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 8px 0 16px;
}

.hero-icon {
  flex: none;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--field);
}

.hero h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 2px 0;
}

.hero .sub {
  display: block;
  color: var(--muted);
}

.detail {
  font-size: 16px;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 16px;
}

.report {
  max-width: 648px;
  margin: 32px auto 0;
}

.report p {
  margin: 0 0 20px;
  font-size: 15px;
}

.big-button {
  display: block;
  text-align: center;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

@media (max-width: 760px) {
  .bar {
    justify-content: center;
  }

  .brand {
    flex: none;
  }

  .spacer {
    display: none;
  }

  .tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-around;
    background: var(--ground);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    z-index: 3;
  }

  .tab {
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    padding: 4px 8px;
  }

  .tab .i.small {
    display: none;
  }

  .menu {
    top: auto;
    bottom: calc(100% + 10px);
  }

  main {
    padding-bottom: 96px;
  }

  .thumb {
    width: 48px;
    height: 48px;
  }

  .hero-icon {
    width: 80px;
    height: 80px;
  }

  .search input {
    width: 120px;
  }

  .list-head h2 {
    font-size: 20px;
  }

  .filters {
    width: min(320px, calc(100vw - 32px));
  }
}
