:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f9;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.card {
  width: min(440px, calc(100% - 32px));
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
}
.card.wide { width: min(760px, calc(100% - 32px)); }
h1 { font-size: 20px; margin: 0 0 6px; font-weight: 600; }
.sub { margin: 0 0 24px; font-size: 13px; color: #6b7280; line-height: 1.6; }
label { display: block; font-size: 13px; margin-bottom: 8px; color: #374151; }
input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  margin-bottom: 14px;
}
input:focus { border-color: #185fa5; box-shadow: 0 0 0 3px rgba(24, 95, 165, .12); }
button {
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: #185fa5;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
button:hover { background: #0c447c; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.danger { background: #a32d2d; }
button.danger:hover { background: #791f1f; }
button.ghost { background: transparent; color: #185fa5; border: 1px solid #d1d5db; }
button.ghost:hover { background: #f4f6f9; }
button.small { width: auto; padding: 7px 12px; font-size: 13px; margin: 0 4px 0 0; }
.link { color: #185fa5; cursor: pointer; font-size: 13px; background: none; border: 0; padding: 8px 0; width: auto; }
.link:hover { background: none; text-decoration: underline; }
.status { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #888780; flex: none; }
.dot.connecting { background: #ba7517; }
.dot.ok { background: #1d9e75; }
.dot.error { background: #e24b4a; }
.party { padding: 12px 0; border-top: 1px solid #f1efe8; }
.party-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.hint { color: #9ca3af; font-size: 12px; }
.meter { height: 6px; background: #f1efe8; border-radius: 3px; overflow: hidden; }
.meter span { display: block; width: 0; height: 100%; background: #1d9e75; transition: width .08s linear; }
.error { margin: 16px 0 0; color: #a32d2d; font-size: 13px; line-height: 1.6; }
.notice { padding: 14px 16px; border-radius: 8px; font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.notice.info { background: #e6f1fb; color: #0c447c; }
.notice.warn { background: #faeeda; color: #854f0b; }
.notice.ok { background: #e1f5ee; color: #085041; }
.notice.error { background: #fcebeb; color: #791f1f; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.topbar .who { font-size: 13px; color: #6b7280; }
.topbar .who b { color: #1f2937; font-weight: 500; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #f1efe8; }
th { color: #6b7280; font-weight: 500; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 12px; }
.badge.pending { background: #f1efe8; color: #5f5e5a; }
.badge.applied { background: #faeeda; color: #854f0b; }
.badge.approved { background: #e1f5ee; color: #085041; }
.badge.rejected, .badge.suspended { background: #fcebeb; color: #791f1f; }
.badge.admin { background: #eeedfe; color: #3c3489; }
.row-actions { white-space: nowrap; }
.audio { display: none; }
