/* Customer Portal — minimal, no framework. */
:root { --bg: #f6f7f9; --card: #ffffff; --ink: #1a1d21; --muted: #6b7280;
        --line: #e5e7eb; --accent: #1d4ed8; --ok: #15803d; --warn: #b45309; --bad: #b91c1c; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
       background: var(--bg); color: var(--ink); }
header.topbar { background: #111827; color: #fff; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; }
header.topbar .brand { font-weight: 700; font-size: 17px; }
header.topbar .spacer { flex: 1; }
header.topbar select, header.topbar button { padding: 6px 10px; border-radius: 6px; border: 1px solid #374151;
  background: #1f2937; color: #fff; cursor: pointer; }
nav.tabs { display: flex; gap: 4px; padding: 8px 16px; background: var(--card);
  border-bottom: 1px solid var(--line); overflow-x: auto; position: sticky; top: 49px; z-index: 9; }
nav.tabs button { border: 0; background: none; padding: 8px 12px; border-radius: 8px;
  cursor: pointer; font-size: 14px; white-space: nowrap; color: var(--ink); }
nav.tabs button.active { background: #dbeafe; color: var(--accent); font-weight: 600; }
main { max-width: 980px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 15px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
button.primary { background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 8px 14px; cursor: pointer; font-size: 14px; }
button.ghost { background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 14px; cursor: pointer; font-size: 14px; }
button:disabled { opacity: .55; cursor: default; }
.muted { color: var(--muted); font-size: 13px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
table.data th { color: var(--muted); font-weight: 600; font-size: 12px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.badge.ok { background: #dcfce7; color: var(--ok); }
.badge.warn { background: #fef3c7; color: var(--warn); }
.badge.bad { background: #fee2e2; color: var(--bad); }
.badge.info { background: #dbeafe; color: var(--accent); }
.notice { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.notice.warn { background: #fffbeb; border: 1px solid #fde68a; }
.notice.bad { background: #fef2f2; border: 1px solid #fecaca; }
.notice.ok { background: #f0fdf4; border: 1px solid #bbf7d0; }
.notice.info { background: #eff6ff; border: 1px solid #bfdbfe; }
.price { font-weight: 700; }
.login-wrap { max-width: 380px; margin: 60px auto; }
.login-wrap input { width: 100%; margin-bottom: 10px; }
.login-wrap button.primary { width: 100%; }
.hidden { display: none !important; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
