:root {
  --ink: #3d3b42;
  --muted: #77747d;
  --line: #eadde5;
  --paper: #fffafd;
  --card: #ffffff;
  --green: #e6007e;
  --green-dark: #ad005e;
  --green-soft: #fde7f2;
  --amber: #b66e07;
  --red: #b33e43;
  --shadow: 0 16px 40px rgba(21, 66, 50, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--green); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { background: #45434a; color: #fff7fc; padding: 28px 18px; display: flex; flex-direction: column; gap: 26px; }
.brand { padding: 0 12px; }
.brand small { color: #f7a6cf; letter-spacing: .16em; text-transform: uppercase; font-size: 10px; }
.brand h1 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.04em; }
.brand-logo { display: block; width: min(178px, 100%); height: auto; margin-bottom: 15px; background: white; border-radius: 9px; padding: 8px 10px; }
.nav { display: grid; gap: 8px; }
.nav button { border: 0; color: #f1dfe9; background: transparent; border-radius: 12px; padding: 12px 13px; text-align: left; font-weight: 600; }
.nav button:hover, .nav button.active { color: white; background: rgba(255,255,255,.14); }
.sidebar-note { margin-top: auto; font-size: 12px; line-height: 1.5; color: #dfc9d5; padding: 12px; }
.main { padding: 28px min(5vw, 64px) 52px; max-width: 1500px; width: 100%; margin: 0 auto; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.05em; }
h3 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.btn { border: 0; border-radius: 11px; padding: 11px 15px; font-weight: 750; transition: .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: white; background: var(--green); }
.btn.primary:hover { background: var(--green-dark); }
.btn.ghost { color: var(--green-dark); background: var(--green-soft); }
.btn.danger { color: white; background: var(--red); }
.btn.small { padding: 7px 10px; font-size: 12px; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.stat .label { font-size: 12px; font-weight: 700; color: var(--muted); }
.stat .value { margin-top: 8px; font-size: 32px; font-weight: 850; letter-spacing: -.05em; }
.stat .hint { margin-top: 4px; font-size: 12px; color: var(--muted); }
.two-col { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); align-items: start; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-title h3 { margin: 0; }
.pill { display: inline-flex; align-items: center; border-radius: 100px; padding: 5px 9px; font-size: 11px; font-weight: 800; background: var(--green-soft); color: var(--green-dark); }
.pill.amber { background: #fff3da; color: var(--amber); }
.pill.red { background: #fde5e6; color: var(--red); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 540px; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
tr:last-child td { border-bottom: 0; }
.empty { padding: 28px 10px; text-align: center; color: var(--muted); }
.view { display: none; }
.view.active { display: block; }
.notice { padding: 14px 16px; border-radius: 13px; background: #fff8e8; border: 1px solid #f3dfb5; color: #725116; font-size: 13px; line-height: 1.45; margin-bottom: 18px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
input, select, textarea { width: 100%; border: 1px solid #cbdad3; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: white; }
label { display: grid; gap: 6px; font-size: 12px; font-weight: 750; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at top right, #d9f1e4, transparent 45%), var(--paper); }
.login-card { width: min(430px, 100%); }
.login-card .brand { padding: 0; margin-bottom: 26px; }
.login-card .brand h1 { font-size: 32px; }
.form-stack { display: grid; gap: 15px; }
.feedback { min-height: 20px; font-size: 13px; color: var(--red); }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: #fff1f8; }
.qr-shell { width: min(800px, 100%); text-align: center; }
.screen-logo { display: block; width: min(290px, 72vw); height: auto; margin: 0 auto 10px; background: white; border-radius: 12px; padding: 10px 16px; }
.qr-shell h1 { font-size: clamp(30px, 5vw, 58px); letter-spacing: -.06em; margin: 10px 0; }
.qr-box { margin: 26px auto; padding: 24px; width: min(540px, 100%); background: white; border-radius: 25px; box-shadow: var(--shadow); }
.qr-box img { display: block; width: 100%; height: auto; image-rendering: crisp-edges; }
.countdown { font-size: 18px; font-weight: 800; color: var(--green); }
.qr-help { max-width: 560px; margin: 0 auto; color: var(--muted); line-height: 1.6; }
.worker-page { min-height: 100vh; padding: 18px; background: linear-gradient(150deg, #fff0f8, #fffafd); }
.worker-shell { width: min(580px, 100%); margin: 0 auto; }
.worker-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 12px 0 22px; }
.worker-brand { flex: 0 0 auto; }
.worker-day { flex: 1 1 auto; min-width: 0; padding: 8px 12px; border-left: 3px solid var(--green); }
.day-date { color: var(--ink); font-size: clamp(16px, 3.5vw, 23px); font-weight: 850; text-transform: capitalize; line-height: 1.15; }
.football-result { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.football-result strong { color: var(--green-dark); }
.football-ball { margin-right: 4px; }
.worker-logo { font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
.worker-logo-image { display: block; width: 168px; height: auto; background: white; border-radius: 8px; padding: 7px 9px; margin-bottom: 7px; }
.worker-card { margin-bottom: 14px; }
.punch-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.punch-intro h2 { font-size: 30px; }
.tap-hint { flex: 0 0 auto; border-radius: 999px; padding: 9px 12px; background: var(--green-soft); color: var(--green-dark); font-weight: 850; font-size: 12px; }
.employee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.employee-tile { display: flex; align-items: center; gap: 12px; min-height: 76px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--ink); padding: 11px; text-align: left; font-weight: 800; transition: .15s ease; }
.employee-tile:hover, .employee-tile.selected { border-color: var(--green); background: var(--green-soft); transform: translateY(-1px); }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; color: white; background: linear-gradient(145deg, #e6007e, #6a5360); font-weight: 900; letter-spacing: -.03em; }
.avatar-large { width: 64px; height: 64px; font-size: 19px; }
.selected-employee { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.selected-employee h2 { font-size: 28px; }
.text-button { margin-top: 12px; color: var(--green-dark); background: transparent; padding-left: 0; padding-right: 0; }
.info-card { background: #fff3f9; border-color: #f4c8df; }
.week-summary { background: linear-gradient(145deg, #fff, #fff2f9); border-color: #f1bed8; }
.summary-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.summary-metrics > div { padding: 13px 11px; border-radius: 13px; background: rgba(255,255,255,.82); border: 1px solid #f0d8e5; }
.summary-metrics span { display: block; color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.25; }
.summary-metrics strong { display: block; margin-top: 7px; color: var(--ink); font-size: 22px; letter-spacing: -.04em; }
.summary-metrics .balance-pending strong { color: var(--red); }
.summary-metrics .balance-ahead strong { color: var(--green-dark); }
.summary-metrics .balance-on-track strong { color: var(--green); }
.summary-message { margin: 15px 0 0; color: var(--ink); font-size: 14px; font-weight: 750; }
.summary-reference { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.celebration { animation: rise-in .25s ease-out; }
.motivation { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(21,122,88,.16); font-weight: 650; }
@keyframes rise-in { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.vacation-periods-card { margin-top: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.punch-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.punch-buttons button { padding: 17px 10px; border-radius: 14px; font-size: 17px; font-weight: 850; border: 0; }
.in { color: #075937; background: #bdeed2; }
.out { color: #7d2f33; background: #f6c7c8; }
.success { padding: 14px; background: var(--green-soft); color: var(--green-dark); border-radius: 12px; font-weight: 700; }
.toast { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(61, 59, 66, .52); backdrop-filter: blur(7px); pointer-events: none; opacity: 0; }
.toast-show { animation: toast-in-out 3.1s ease both; }
.toast-hide { display: none; }
.toast-card { position: relative; width: min(760px, 100%); padding: 50px 34px 38px; overflow: hidden; text-align: center; border: 4px solid #f5b1d4; border-radius: 32px; background: linear-gradient(145deg, #fff 0%, #fff4fa 100%); color: var(--ink); box-shadow: 0 25px 80px rgba(93, 31, 67, .35); transform: scale(.78) translateY(18px); }
.toast-show .toast-card { animation: toast-card-pop 3.1s ease both; }
.toast-check { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 50%; color: white; background: linear-gradient(145deg, #f32a9b, #b80065); box-shadow: 0 12px 25px rgba(230, 0, 126, .3); font-size: 54px; font-weight: 900; line-height: 1; }
.toast-kicker { color: var(--green); font-size: 15px; font-weight: 900; letter-spacing: .16em; margin-bottom: 12px; }
.toast strong { display: block; font-size: clamp(30px, 6vw, 58px); line-height: 1.05; letter-spacing: -.055em; }
.toast p { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: clamp(18px, 3vw, 27px); line-height: 1.3; font-weight: 650; }
.toast-sparkle { margin-top: 20px; color: var(--green); font-size: 24px; letter-spacing: .4em; }
.toast-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.toast-confetti i { position: absolute; top: -30px; width: 13px; height: 24px; border-radius: 5px; background: var(--green); animation: confetti-fall 3.1s ease-out both; }
.toast-confetti i:nth-child(3n) { background: #77747d; height: 15px; transform: rotate(28deg); }
.toast-confetti i:nth-child(3n+1) { background: #f6bd3b; border-radius: 50%; width: 15px; height: 15px; }
.toast-confetti i:nth-child(1) { left: 7%; animation-delay: .02s; }
.toast-confetti i:nth-child(2) { left: 16%; animation-delay: .1s; }
.toast-confetti i:nth-child(3) { left: 25%; animation-delay: .18s; }
.toast-confetti i:nth-child(4) { left: 35%; animation-delay: .06s; }
.toast-confetti i:nth-child(5) { left: 44%; animation-delay: .22s; }
.toast-confetti i:nth-child(6) { left: 53%; animation-delay: .12s; }
.toast-confetti i:nth-child(7) { left: 62%; animation-delay: .2s; }
.toast-confetti i:nth-child(8) { left: 71%; animation-delay: .04s; }
.toast-confetti i:nth-child(9) { left: 80%; animation-delay: .16s; }
.toast-confetti i:nth-child(10) { left: 88%; animation-delay: .08s; }
.toast-confetti i:nth-child(11) { left: 93%; animation-delay: .24s; }
.toast-confetti i:nth-child(12) { left: 4%; animation-delay: .14s; }
@keyframes toast-in-out { 0%, 100% { opacity: 0; } 7%, 84% { opacity: 1; } }
@keyframes toast-card-pop { 0% { transform: scale(.78) translateY(18px); } 9%, 84% { transform: scale(1) translateY(0); } 100% { transform: scale(.94) translateY(-7px); } }
@keyframes confetti-fall { 0% { opacity: 0; transform: translateY(-30px) rotate(0deg); } 10% { opacity: 1; } 100% { opacity: .8; transform: translateY(800px) rotate(420deg); } }
.security-note { font-size: 12px; color: var(--muted); line-height: 1.45; }
.hidden { display: none !important; }
@media (max-width: 950px) { .shell { grid-template-columns: 1fr; } .sidebar { padding: 18px; gap: 16px; } .nav { display: flex; overflow-x: auto; } .nav button { white-space: nowrap; } .sidebar-note { display: none; } .main { padding: 24px 18px 42px; } }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two-col, .field-grid { grid-template-columns: 1fr; } .topbar { display: block; } .top-actions { margin-top: 14px; } .card { padding: 16px; } .employee-grid { grid-template-columns: 1fr; } .punch-intro { display: block; } .tap-hint { display: inline-block; margin-top: 8px; } .punch-buttons { grid-template-columns: 1fr; } .worker-head { flex-wrap: wrap; } .worker-day { order: 3; flex-basis: 100%; border-left: 0; border-top: 3px solid var(--green); padding: 8px 0 0; } .summary-metrics { grid-template-columns: 1fr; } }
