:root {
  --teal: #1a5f7a;
  --red: #e6194b;
  --ink: #1f2430;
  --muted: #5b6470;
  --line: #e3e7ec;
  --bg: #f5f7f9;
  --card: #ffffff;
  --green: #1e8e5a;
  --grey: #8a929e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: var(--teal);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
}
.brand { font-weight: 700; font-size: 1.05rem; }
.brand-sub { font-weight: 400; opacity: 0.85; }
.header-nav { display: flex; align-items: center; gap: 14px; }
.header-email { font-size: 0.85rem; opacity: 0.9; word-break: break-all; }
.logout { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.5); }
.logout:hover { border-bottom-color: #fff; }

main.wrap { padding-top: 28px; padding-bottom: 40px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(31, 36, 48, 0.04);
}
.login-card { max-width: 440px; margin: 20px auto; text-align: center; }

h1 { margin: 0 0 8px; font-size: 1.5rem; color: var(--teal); }
.muted { color: var(--muted); margin: 0 0 18px; }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #c8143d; }

.error {
  background: #fdecef;
  color: #a01030;
  border: 1px solid #f3b6c3;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 16px;
}

.product-list { list-style: none; margin: 8px 0 0; padding: 0; }
.product {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.product-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-name { font-weight: 600; }
.product-meta { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-active { background: #e4f4ec; color: var(--green); }
.badge-inactive { background: #eef0f3; color: var(--grey); }

.empty { color: var(--muted); font-style: italic; }
.note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
