:root {
  --bg: #eef2f1;
  --surface: #fff;
  --text: #17211d;
  --muted: #68736f;
  --line: #dde5e1;
  --green: #19704d;
  --green-soft: #e5f3ec;
  --amber: #a56512;
  --amber-soft: #fff0d8;
  --blue: #316b93;
  --blue-soft: #e7f1f8;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: #18231f; color: white; }
.topbar strong { display: block; font-size: 17px; }
.topbar span { display: block; margin-top: 2px; color: #aab8b2; font-size: 11px; }
.topbar button { border: 1px solid #3a4c44; background: #25342e; color: white; border-radius: 5px; padding: 8px 12px; }
main { max-width: 1120px; margin: 0 auto; padding: 16px; }
.filters { display: grid; grid-template-columns: minmax(240px, 1fr) 130px 130px; gap: 8px; margin-bottom: 10px; }
.search { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.search input { width: 100%; border: 0; outline: 0; }
select { min-height: 40px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--text); padding: 0 10px; }
.summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.summary div { min-height: 68px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.summary strong, .summary span { display: block; }
.summary strong { font-size: 22px; }
.summary span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.items { display: grid; gap: 7px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.category { display: inline-block; margin-bottom: 5px; color: var(--green); font-size: 11px; font-weight: 700; }
h2 { margin: 0; font-size: 14px; line-height: 1.3; }
p { margin: 4px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
small { display: block; margin-top: 6px; color: #55615d; font-size: 11px; }
.side { display: grid; justify-items: end; gap: 7px; }
.side strong { font-size: 13px; }
.status { display: inline-block; white-space: nowrap; border-radius: 4px; padding: 4px 7px; font-size: 11px; font-weight: 700; }
.status.available { color: var(--green); background: var(--green-soft); }
.status.limited { color: var(--amber); background: var(--amber-soft); }
.status.check { color: var(--blue); background: var(--blue-soft); }
.empty { padding: 42px 12px; text-align: center; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 14px); opacity: 0; pointer-events: none; transition: .18s; background: #17211d; color: white; border-radius: 5px; padding: 9px 12px; font-size: 12px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 720px) {
  .topbar { padding: 12px 13px; }
  main { padding: 12px 10px 18px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search { grid-column: 1 / -1; }
  .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .summary div { min-height: 58px; padding: 9px; }
  .summary strong { font-size: 18px; }
  .item { padding: 9px 10px; gap: 8px; }
  h2 { font-size: 13px; }
  p { font-size: 11px; }
  .status { padding: 3px 6px; font-size: 10px; }
}
