:root {
  --bee-yellow: #FFC107;
  --bee-yellow-dark: #E5AC00;
  --bee-black: #1a1a1a;
  --bee-black-soft: #2b2b2b;
  --bee-amber-link: #9A6700;
}
* { box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, Segoe UI, Arial, sans-serif;
  background: #f3f4f6;
  margin: 0;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-header {
  background: var(--bee-black);
  padding: 16px 32px;
}
.site-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-header-brand img {
  height: 40px;
  display: block;
}
.site-header-brand-name {
  color: var(--bee-yellow);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.wrap {
  max-width: 480px;
  margin: 60px auto;
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  flex: 1 0 auto;
  width: 100%;
}
.wrap.wide {
  max-width: 900px;
}
.site-footer {
  background: var(--bee-black);
  padding: 32px;
  margin-top: auto;
}
.site-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer-inner img {
  height: 28px;
  display: block;
}
.site-footer-brand-name {
  color: var(--bee-yellow);
  font-weight: 700;
  font-size: 16px;
}
.site-footer-tagline {
  color: #d1d5db;
  font-size: 13px;
  margin: 4px 0 0;
}
.site-footer-copyright {
  max-width: 900px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--bee-black-soft);
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}
a { color: var(--bee-amber-link); }
h1 { font-size: 22px; margin-top: 0; }
h2 { font-size: 18px; }
label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 14px; }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
button, .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: var(--bee-yellow);
  color: var(--bee-black);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button:hover, .btn:hover { background: var(--bee-yellow-dark); }
button.clock-out { background: #dc2626; color: white; }
button.clock-out:hover { background: #b91c1c; }
button.secondary, .btn.secondary { background: var(--bee-black); color: var(--bee-yellow); }
button.secondary:hover, .btn.secondary:hover { background: var(--bee-black-soft); }
.flash {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #e5e7eb; }
th { background: #f9fafb; }
.nav { margin-bottom: 20px; font-size: 14px; }
.nav a { color: var(--bee-amber-link); text-decoration: none; margin-right: 16px; font-weight: 600; }
.muted { color: #6b7280; font-size: 13px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.badge.in { background: #dcfce7; color: #166534; }
.badge.out { background: #f3f4f6; color: #374151; }
.badge.unread { background: #dc2626; color: #fff; font-weight: 700; padding: 1px 7px; }
.lock-icon { font-size: 11px; opacity: .6; }
.internal-doc-banner {
  background: #7f1d1d; color: #fff; font-weight: 700; font-size: 13px;
  padding: 10px 16px; border-radius: 6px; margin-bottom: 20px; text-align: center;
}

/* Onboarding wizard */
.wizard-progress {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.wizard-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.wizard-pill-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.wizard-pill.active .wizard-pill-num { background: var(--bee-yellow); color: var(--bee-black); }
.wizard-pill.done .wizard-pill-num { background: var(--bee-black); color: var(--bee-yellow); }
.wizard-pill-label { font-size: 11px; color: #6b7280; white-space: nowrap; }
.wizard-pill.active .wizard-pill-label { color: #1f2937; font-weight: 600; }
.wizard-connector { flex: 1 0 20px; height: 2px; background: #e5e7eb; margin: 0 4px 18px; min-width: 20px; }
.wizard-connector.done { background: var(--bee-black); }

.plan-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0 28px; }
.plan-choice-card {
  border: 2px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
}
.plan-choice-card.selected { border-color: var(--bee-yellow); background: #fffbea; }
.plan-choice-card input[type="radio"] { margin-bottom: 4px; }
.plan-choice-price { font-size: 18px; font-weight: 800; }

.wizard-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wizard-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.wizard-row label { margin-top: 0; }

.field-error { color: #b91c1c; font-size: 13px; margin: 4px 0 0; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-top: 12px; }

.password-rules { list-style: none; padding: 0; margin: 10px 0; font-size: 13px; }
.password-rules li { color: #6b7280; padding: 2px 0; }
.password-rules li::before { content: "\25CB  "; }
.password-rules li.met { color: #166534; }
.password-rules li.met::before { content: "\2713  "; }
.password-strength-meter { height: 6px; border-radius: 3px; background: #e5e7eb; overflow: hidden; margin-bottom: 8px; }
.password-strength-fill { height: 100%; width: 0; background: #dc2626; transition: width 0.2s; }
.password-strength-fill.medium { background: #f59e0b; }
.password-strength-fill.strong { background: #16a34a; }

.checklist { list-style: none; padding: 0; margin: 12px 0; }
.checklist li { padding: 6px 0; font-size: 14px; }
.checklist li.done { color: #166534; }
.checklist li.todo { color: #1f2937; }
.checklist li a { font-weight: 600; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.stat-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; }
.stat-card-value { font-size: 24px; font-weight: 700; color: #1f2937; }
.stat-card-label { font-size: 12px; color: #6b7280; margin-top: 2px; }

@media (max-width: 640px) {
  .wizard-row, .wizard-row-3 { grid-template-columns: 1fr; }
  .wizard-pill-label { display: none; }
}

/* Admin app shell */
.admin-body { background: #f9fafb; }
.admin-shell { display: flex; flex-direction: column; min-height: 100vh; }

.admin-topbar {
  background: #111827; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.admin-topbar-left { display: flex; align-items: center; gap: 10px; }
.admin-topbar-left img { height: 28px; display: block; }
.admin-topbar-left span { color: var(--bee-yellow); font-size: 15px; font-weight: 700; }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-topbar-right span { color: #9ca3af; font-size: 13px; }
.admin-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bee-yellow); color: var(--bee-black);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}

.admin-body-row { display: flex; flex: 1; }

.admin-sidebar {
  width: 220px; background: #111827; padding: 16px 0;
  flex-shrink: 0; display: flex; flex-direction: column;
}
.admin-sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 24px; font-size: 14px; font-weight: 500;
  color: #9ca3af; text-decoration: none; transition: background .15s;
}
.admin-sidebar-item:hover { background: rgba(255,255,255,.05); color: #e5e7eb; }
.admin-sidebar-item.active { background: rgba(255,193,7,.15); color: var(--bee-yellow); font-weight: 700; }
.admin-si { font-size: 15px; }
.admin-sidebar-logout { margin-top: auto; border-top: 1px solid #1f2937; }

.admin-main {
  flex: 1; padding: 32px; max-width: 1100px;
}

.dash-welcome h1 { margin-bottom: 2px; }
.dash-welcome p { margin: 0 0 20px; }

.admin-stat-cards { margin-bottom: 8px; }
.stat-card-sub { font-size: 11px; color: #9ca3af; margin-top: 4px; }

.quick-actions-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px; margin: 16px 0 24px;
}
.quick-action-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  text-decoration: none; color: #1f2937; text-align: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.quick-action-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); border-color: var(--bee-yellow);
}
.quick-action-icon {
  width: 44px; height: 44px; border-radius: 50%; background: #FFF8E1;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.quick-action-card .badge.unread { position: static; margin-left: 2px; }
.quick-action-label { font-size: 12px; font-weight: 600; }

.admin-panels-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 8px; }
.dash-panel {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px;
}
.dash-panel-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: #1f2937; }
.dash-panel-footer { margin-top: 10px; font-size: 12px; }
.dash-panel-footer a { font-weight: 600; }

.clocked-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid #f3f4f6;
}
.clocked-row:last-child { border-bottom: none; }
.clocked-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.clocked-name { font-size: 13px; font-weight: 600; flex: 1; }
.clocked-time { font-size: 12px; color: #6b7280; }

.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 120px; margin-top: 8px; }
.bar-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-chart-bar { width: 100%; max-width: 32px; background: var(--bee-yellow); border-radius: 4px 4px 0 0; min-height: 3px; }
.bar-chart-label { font-size: 11px; color: #6b7280; margin-top: 6px; }

@media (max-width: 800px) {
  .admin-body-row { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 8px; }
  .admin-sidebar-item { padding: 8px 14px; white-space: nowrap; }
  .admin-sidebar-logout { margin-top: 0; border-top: none; }
  .admin-panels-row { grid-template-columns: 1fr; }
}

/* Collapsible sections (Prior 4 weeks) */
.collapsible > summary { cursor: pointer; list-style: none; }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary h1, .collapsible > summary h2 { display: inline-block; margin: 0; }
.collapsible > summary::before {
  content: "▸"; display: inline-block; margin-right: 8px;
  font-size: 14px; color: #6b7280; transition: transform .15s;
}
.collapsible[open] > summary::before { transform: rotate(90deg); }
.collapsible-week { margin: 16px 0; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 16px; }
.collapsible-week table { margin-top: 12px; }
