body { font-family: -apple-system, "Malgun Gothic", sans-serif; background: #f3f4f6; margin: 0; color: #1f2937; }

/* 로그인 화면 */
#loginScreen { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.card { background: #fff; border-radius: 12px; padding: 32px; width: 100%; max-width: 360px;
        box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.card h1 { font-size: 20px; margin: 0 0 20px; }
label { display: block; font-size: 13px; color: #555; margin: 14px 0 4px; }
input, select { width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 15px;
        border: 1px solid #ccc; border-radius: 8px; font-family: inherit; }
button { padding: 10px 16px; font-size: 14px; font-weight: 600; color: #fff; background: #16a34a;
         border: none; border-radius: 8px; cursor: pointer; }
button:disabled { background: #9ca3af; cursor: default; }
button.secondary { background: #6b7280; }
button.danger { background: #dc2626; }
#loginBtn { width: 100%; margin-top: 20px; padding: 12px; }
#msg { margin-top: 14px; font-size: 14px; white-space: pre-wrap; }
#msg.error { color: #dc2626; }
#msg.ok { color: #16a34a; }

/* 대시보드 */
#dashboard { display: none; }
header { background: #fff; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between;
         box-shadow: 0 1px 4px rgba(0,0,0,.06); }
header .title { font-size: 16px; font-weight: 700; }
header .who { font-size: 13px; color: #666; }
nav { display: flex; gap: 6px; padding: 12px 20px; flex-wrap: wrap; }
nav a { padding: 8px 14px; border-radius: 8px; background: #fff; color: #374151; text-decoration: none;
        font-size: 14px; font-weight: 600; border: 1px solid #e5e7eb; }
nav a.active { background: #16a34a; color: #fff; border-color: #16a34a; }
main { padding: 0 20px 40px; max-width: 900px; }
.panel { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.panel h2 { margin: 0 0 16px; font-size: 17px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; }
th { color: #666; font-weight: 600; font-size: 12px; text-transform: uppercase; }
td.actions { white-space: nowrap; text-align: right; }
td.actions button { padding: 6px 10px; font-size: 12px; margin-left: 4px; }
.empty { color: #999; padding: 20px 0; text-align: center; }

.formRow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.formActions { margin-top: 16px; display: flex; gap: 8px; }
.inlineForm { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; margin-bottom: 16px; background: #fafafa; }
