/* Plain, phone-first layout. Brand look (colours, logo) waits for Niki's standard. */
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", "Malgun Gothic", "Microsoft YaHei", sans-serif; color: #222; background: #f6f5f3; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e3e0dc; position: sticky; top: 0; z-index: 2; }
.brand { font-weight: 700; color: #222; text-decoration: none; }
.brand span { font-weight: 400; color: #777; }
.top-right { display: flex; gap: 10px; align-items: center; }
.demo { background: #fff4cc; color: #6b5300; padding: 6px 16px; font-size: 13px; text-align: center; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; min-width: 0; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0 0 10px; }
.card { background: #fff; border: 1px solid #e3e0dc; border-radius: 8px; padding: 16px; margin-bottom: 14px; }
.narrow { max-width: 420px; margin: 40px auto; }
.muted { color: #6f6a64; }
.small { font-size: 12.5px; }
.error { color: #a32020; }
label { display: block; margin: 10px 0; font-weight: 600; }
input, select { font: inherit; padding: 8px 10px; border: 1px solid #ccc7c1; border-radius: 6px; background: #fff; }
label input { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
button { font: inherit; cursor: pointer; }
.primary { background: #2f4a5c; color: #fff; border: 0; border-radius: 6px; padding: 10px 16px; width: 100%; }
.link { background: none; border: 0; color: #2f4a5c; text-decoration: underline; padding: 4px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.filters input[type=search] { flex: 1 1 200px; }
.check { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { padding: 8px 10px; border-bottom: 1px solid #eeebe7; text-align: left; white-space: nowrap; }
th { font-size: 12.5px; color: #6f6a64; font-weight: 600; background: #faf9f7; }
.num { text-align: right; }
.orders tbody tr { cursor: pointer; }
.orders tbody tr:hover { background: #f3f6f8; }
.orders a { color: #2f4a5c; font-weight: 600; text-decoration: none; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #e9eff3; color: #2f4a5c; font-size: 12.5px; }
.grid .tot td { font-weight: 700; background: #faf9f7; }
.recv { color: #6f6a64; font-size: 12px; }
.scroll { overflow-x: auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.facts dt { font-size: 12.5px; color: #6f6a64; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.log { list-style: none; padding: 0; margin: 0; }
.log li { padding: 6px 0; border-bottom: 1px solid #eeebe7; }
.notice { background: #fbfaf7; }
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .top { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
  .top-right select { padding: 4px 6px; }
  .filters input[type=search] { flex-basis: 100%; }
  .filters select { flex: 1 1 45%; }
  th, td { padding: 7px 6px; }
  main { padding: 10px; }
}
