:root {
  --blue: #1565c0;
  --blue-dark: #0d47a1;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #6b7684;
  --green: #2e7d32;
  --red: #c62828;
  --amber: #ef6c00;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--blue);
  color: #fff;
}
header.top h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
}
header.top a, header.top button.link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: .9;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.card h2 {
  font-size: 16px;
  margin: 0 0 12px;
}
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 4px;
}
input, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d6dbe3;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
button, .btn {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 14px;
}
button:active { background: var(--blue-dark); }
button.secondary { background: #e7ebf1; color: var(--text); }
button.danger { background: var(--red); }
button:disabled { opacity: .5; cursor: not-allowed; }
.muted { color: var(--muted); font-size: 13px; }
.msg { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }
.msg.error { background: #fdecea; color: var(--red); }
.msg.ok { background: #e8f5e9; color: var(--green); }
.msg.info { background: #e3f2fd; color: var(--blue-dark); }
.stamps { display: flex; gap: 8px; margin: 10px 0; }
.stamp {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.stamp.filled { background: var(--blue); color: #fff; }
.stat { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eef1f5; }
.stat:last-child { border-bottom: none; }
.stat b { font-size: 16px; }
.tabs { display: flex; margin-bottom: 16px; border-radius: 10px; overflow: hidden; border: 1px solid #d6dbe3; }
.tabs button { margin: 0; border-radius: 0; background: #fff; color: var(--text); }
.tabs button.active { background: var(--blue); color: #fff; }
.hh-banner {
  background: linear-gradient(90deg, var(--amber), #f9a825);
  color: #fff; padding: 12px 16px; border-radius: var(--radius);
  margin-bottom: 16px; font-weight: 600; font-size: 14px;
}
.hidden { display: none !important; }
.log-item { padding: 8px 0; border-bottom: 1px solid #eef1f5; font-size: 13px; }
.log-item .when { color: var(--muted); }
a.link { color: var(--blue); font-size: 14px; text-decoration: none; }
