* { box-sizing: border-box; font-family: -apple-system, "Malgun Gothic", sans-serif; }
body { margin: 0; background: #f1efe8; color: #2c2c2a; }
#app { max-width: 480px; margin: 0 auto; padding: 16px; min-height: 100vh; }
.card { background: #fff; border: 0.5px solid #d3d1c7; border-radius: 16px; padding: 20px 16px; margin-bottom: 16px; }
h1 { font-size: 18px; font-weight: 500; margin: 0 0 4px; }
.sub { font-size: 13px; color: #5f5e5a; margin: 0 0 14px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: #888780; margin-bottom: 6px; }
select, input[type=text], input[type=password], input[type=tel], textarea {
  width: 100%; padding: 10px 12px; border: 0.5px solid #b4b2a9; border-radius: 8px; font-size: 15px;
}
textarea { resize: vertical; }
button { width: 100%; padding: 12px; border-radius: 8px; border: 0.5px solid #b4b2a9; background: #fff; font-size: 15px; cursor: pointer; }
button:active { transform: scale(0.98); }
button.primary { background: #185fa5; color: #fff; border: none; }
button.success { background: #97c459; color: #173404; border: none; }
button.danger { background: #f09595; color: #501313; border: none; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.pill-row { display: flex; gap: 8px; margin-bottom: 12px; }
.pill { flex: 1; text-align: center; padding: 10px 0; border-radius: 8px; border: 0.5px solid #b4b2a9; font-size: 14px; cursor: pointer; }
.pill.selected { background: #b5d4f4; border-color: transparent; color: #042c53; font-weight: 500; }
.banner { display: flex; gap: 8px; align-items: center; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.banner.info { background: #e6f1fb; color: #042c53; }
.banner.warn { background: #faeeda; color: #412402; }
.banner.danger { background: #fcebeb; color: #501313; }
.row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.muted { color: #888780; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-dot.on { background: #639922; }
.status-dot.off { background: #b4b2a9; }
.status-dot.overdue { background: #e24b4a; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 6px 4px; border-bottom: 0.5px solid #d3d1c7; text-align: left; }
.tag { display: inline-block; padding: 5px 10px; border: 0.5px solid #b4b2a9; border-radius: 8px; font-size: 12px; margin: 0 4px 6px 0; cursor: pointer; }
.link { color: #185fa5; cursor: pointer; font-size: 13px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tabbtn { padding: 6px 12px; border-radius: 8px; border: 0.5px solid #b4b2a9; background: #fff; font-size: 13px; cursor: pointer; }
.tabbtn.active { background: #185fa5; color: #fff; border: none; }
.small { font-size: 12px; color: #5f5e5a; }
.error { color: #a32d2d; font-size: 12px; min-height: 14px; margin-top: 6px; }
.success-msg { color: #3b6d11; font-size: 12px; min-height: 14px; margin-top: 6px; }
.top-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
