:root {
    --red: #c0392b;
    --red-dark: #962d22;
    --ink: #1c1c1c;
    --muted: #6b7280;
    --bg: #f7f6f4;
    --card: #ffffff;
    --border: #e4e2de;
    --green: #1e7e34;
    --amber: #b8860b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
}

a { color: var(--red); }

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.wide { max-width: 980px; }

.topbar {
    background: var(--ink);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar nav a { margin-left: 16px; font-weight: 500; opacity: 0.85; font-size: 14px; }
.topbar nav a:hover { opacity: 1; }

.brand { font-size: 18px; }
.brand .accent { color: #ff6b53; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 18px;
}

h1 { font-size: 26px; margin: 0 0 8px; }
h2 { font-size: 19px; margin: 0 0 12px; }
p.lead { color: var(--muted); margin-top: 0; }

label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time], textarea, select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfcbc4;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}
textarea { min-height: 80px; }

.btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.btn:hover { background: var(--red-dark); }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid #cfcbc4; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert.error { background: #fdecea; color: #a02f27; border: 1px solid #f4c7c2; }
.alert.success { background: #e9f7ef; color: #1e6b34; border: 1px solid #bfe6cd; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.pending { background: #fdf3d9; color: var(--amber); }
.badge.active { background: #e9f7ef; color: var(--green); }
.badge.inactive { background: #eee; color: #666; }
.badge.recommended { background: #eaf1fb; color: #2c5aa0; }
.badge.confirmed { background: #e9f7ef; color: var(--green); }
.badge.removed { background: #eee; color: #999; }

.muted { color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }

/* ---------- Check-in page ---------- */
.checkin-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: linear-gradient(180deg, #1c1c1c, #2a2a2a);
    color: #fff;
}

.checkin-wrap .dept-name { font-size: 15px; opacity: 0.7; margin-bottom: 4px; }
.checkin-wrap .greeting { font-size: 22px; margin-bottom: 36px; }

.checkin-btn {
    width: min(78vw, 300px);
    height: min(78vw, 300px);
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    border: none;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 0 0 10px rgba(192, 57, 43, 0.18);
    cursor: pointer;
}
.checkin-btn:active { background: var(--red-dark); transform: scale(0.98); }
.checkin-btn.done { background: var(--green); box-shadow: 0 0 0 10px rgba(30, 126, 52, 0.2); }

.checkin-status { margin-top: 26px; font-size: 15px; min-height: 24px; opacity: 0.9; }

.bookmark-banner {
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    padding: 16px 40px 16px 18px;
    max-width: 340px;
    width: 100%;
    margin-bottom: 28px;
    text-align: left;
    position: relative;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    font-size: 14px;
    line-height: 1.5;
}
.bookmark-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.bookmark-sub { margin-top: 8px; color: var(--muted); font-size: 13px; }
.bookmark-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}

.simple-card {
    max-width: 420px;
    margin: 60px auto;
    padding: 30px;
}

.hero {
    text-align: center;
    padding: 60px 20px 40px;
}
.hero h1 { font-size: 34px; }
.hero p { font-size: 17px; color: var(--muted); max-width: 560px; margin: 12px auto 24px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
