:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --surface-muted: #faf8f5;
  --border: #e5dfd5;
  --text: #1f1b16;
  --text-muted: #6e655c;
  --primary: #d95d24;
  --primary-hover: #bd4c18;
  --primary-soft: #fdeee7;
  --success: #15803d;
  --success-soft: #dcfce7;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --danger-soft: #fee2e2;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(31, 27, 22, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.toast {
  background: #1f1b16;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  animation: slideIn 0.2s ease-out;
}

.toast.toast-success {
  background: var(--success);
}

.toast.toast-error {
  background: var(--danger);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brand */
.brand-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.brand-badge.small {
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* Login View */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 36px 28px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-card h1 {
  margin-top: 14px;
  font-size: 1.55rem;
  font-weight: 800;
}

.subtitle {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.login-clock {
  margin: 24px 0;
  padding: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.clock-time {
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.clock-date {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn-google:hover {
  background: var(--surface-muted);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.btn-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-hint {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.error-box {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.86rem;
  text-align: left;
}

/* App Shell */
.topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.role-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.role-badge.admin {
  color: var(--primary);
  font-weight: 700;
}

/* Tabs */
.tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.container {
  max-width: 960px;
  margin: 20px auto;
  padding: 0 16px 40px;
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.tab-panel.active {
  display: flex;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-header.wrap {
  flex-wrap: wrap;
}

.card-header h2 {
  font-size: 1.08rem;
  font-weight: 700;
}

.muted {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Clock Card */
.clock-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.clock-date-lg {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.clock-time-lg {
  font-size: 2.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-top: 2px;
}

.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-idle {
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.status-working {
  background: var(--success-soft);
  color: var(--success);
}

.status-done {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-pending {
  background: #fef3c7;
  color: #b45309;
}

.status-rejected {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-xs {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 8px;
}

.action-inline {
  display: flex;
  gap: 6px;
}

.segmented {
  display: inline-flex;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px;
  gap: 2px;
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
}

.seg-btn.active {
  background: var(--primary);
  color: #fff;
}

.section-subtitle {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 10px;
}

/* Camera & Check-in Photo */
.photo-section {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.camera-box {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.camera-video {
  width: 100%;
  max-width: 360px;
  border-radius: 8px;
  background: #000;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.camera-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.photo-preview-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.photo-preview {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.photo-thumb-btn {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.photo-thumb-btn:hover {
  background: var(--primary-soft);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 14, 11, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
}

.modal-card {
  background: var(--surface);
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-img {
  width: 100%;
  border-radius: 10px;
  max-height: 70vh;
  object-fit: contain;
  background: #111;
}

/* Outlook-style Calendar */
.outlook-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.outlook-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.outlook-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin-left: 4px;
}

.outlook-calendar {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

/* Month View */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}

.cal-weekday {
  padding: 8px 6px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-cell {
  min-height: 92px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background 0.12s;
  background: #fff;
}

.cal-cell:nth-child(7n) {
  border-right: none;
}

.cal-cell:hover {
  background: #fcfaf7;
}

.cal-cell.is-outside {
  background: #faf8f5;
  color: #b4aba0;
}

.cal-cell.is-selected {
  background: #fff7f2;
  box-shadow: inset 0 0 0 2px var(--primary);
}

.cal-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.cal-cell.is-today .cal-day-num {
  background: var(--primary);
  color: #fff;
}

.cal-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cal-pill {
  font-size: 0.71rem;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 3px solid var(--success);
  background: var(--success-soft);
  color: #14532d;
}

.cal-pill.is-working {
  border-left-color: #d97706;
  background: #fef3c7;
  color: #92400e;
}

.cal-more {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  padding-left: 2px;
}

/* Week & Day Time-Grid View */
.cal-timegrid-wrap {
  overflow-x: auto;
}

.cal-timegrid-header {
  display: grid;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  min-width: 640px;
}

.cal-timegrid-header.is-day {
  min-width: 0;
}

.cal-tg-head-cell {
  padding: 8px 6px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  border-left: 1px solid var(--border);
}

.cal-tg-head-cell.is-today {
  color: var(--primary);
  background: var(--primary-soft);
}

.cal-timegrid-body {
  display: grid;
  position: relative;
  min-width: 640px;
}

.cal-timegrid-body.is-day {
  min-width: 0;
}

.cal-time-axis {
  display: flex;
  flex-direction: column;
}

.cal-hour-label {
  height: 44px;
  padding: 2px 6px 0 0;
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-bottom: 1px dashed #ece6dc;
  font-variant-numeric: tabular-nums;
}

.cal-day-col {
  position: relative;
  border-left: 1px solid var(--border);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 43px,
    #ece6dc 43px,
    #ece6dc 44px
  );
}

.cal-day-col.is-today {
  background-color: #fffaf6;
}

.cal-block {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 7px;
  padding: 4px 6px;
  font-size: 0.74rem;
  line-height: 1.25;
  overflow: hidden;
  border-left: 4px solid var(--success);
  background: var(--success-soft);
  color: #14532d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.cal-block.is-working {
  border-left-color: #d97706;
  background: #fef3c7;
  color: #92400e;
}

.cal-block-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-block-time {
  font-size: 0.7rem;
  opacity: 0.9;
}

/* Selected Day Detail Panel */
.cal-day-detail {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.cal-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .cal-cell {
    min-height: 62px;
    padding: 4px 3px;
    align-items: center;
  }
  .cal-day-num {
    width: 22px;
    height: 22px;
    font-size: 0.76rem;
  }
  .cal-events {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    margin-top: 2px;
  }
  .cal-pill {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    border-left: none;
    background: var(--success);
    font-size: 0;
    color: transparent;
  }
  .cal-pill.is-working {
    background: #d97706;
  }
  .cal-more {
    font-size: 0.65rem;
    padding-left: 0;
  }
}

/* Calendar Legend */
.cal-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cal-legend-hint {
  margin-left: auto;
  font-style: italic;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-done {
  background: var(--success);
}

.dot-working {
  background: #d97706;
}

.dot-schedule {
  background: var(--primary);
}

/* Mobile Bottom Navigation */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .tabs {
    display: none;
  }

  .container {
    margin: 12px auto;
    padding: 0 12px 92px;
  }

  .card {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .outlook-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .outlook-nav {
    justify-content: space-between;
  }

  .outlook-title {
    margin-left: auto;
    font-size: 1rem;
  }

  .cal-legend-hint {
    margin-left: 0;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px rgba(31, 27, 22, 0.06);
  }

  .bottom-nav-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
  }

  .bottom-nav-btn.active {
    color: var(--primary);
    font-weight: 700;
  }
}

/* Outlook Schedule Modal & Presets */
.modal-card-lg {
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-chip {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.preset-chip.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.sched-duration-bar {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
}

.sched-detail-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.cal-block.is-schedule {
  border-left-color: var(--primary);
  background: var(--primary-soft);
  color: #7c2d12;
}

.cal-pill.is-schedule {
  border-left-color: var(--primary);
  background: var(--primary-soft);
  color: #7c2d12;
}

@media (max-width: 640px) {
  .cal-pill.is-schedule {
    background: var(--primary);
  }
}

/* AI Assistant Floating Button & Chat Modal */
.ai-fab {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 90;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f1b16, #3d332a);
  color: #fff;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(31, 27, 22, 0.25);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.ai-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 27, 22, 0.32);
}

@media (max-width: 768px) {
  .ai-fab {
    right: 14px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    padding: 10px 14px;
    font-size: 0.84rem;
  }
}

.ai-chat-card {
  display: flex;
  flex-direction: column;
  height: min(82vh, 620px);
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
}

.ai-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-msg-user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ai-msg-bot {
  align-self: flex-start;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.ai-chat-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ai-chat-form .input {
  flex: 1;
}

.btn-notify-active {
  background: var(--success-soft) !important;
  color: var(--success) !important;
  border-color: #86efac !important;
}

.active-shift-banner {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--success-soft);
  color: #14532d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.banner-detail {
  font-size: 0.95rem;
  margin-top: 2px;
}

.elapsed-box {
  text-align: right;
}

.elapsed-label {
  display: block;
  font-size: 0.75rem;
}

.elapsed-value {
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Form Controls */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

.input:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}

.input-sm {
  width: auto;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.88rem;
}

.action-row {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

/* Buttons */
button {
  font-family: inherit;
}

.btn-primary,
.btn-danger,
.btn-secondary,
.btn-ghost {
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

.btn-primary:active,
.btn-danger:active {
  transform: scale(0.99);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: var(--danger-hover);
}

.btn-secondary {
  background: var(--surface-muted);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #efeae2;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 10px;
  font-size: 0.86rem;
}

.btn-ghost:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.btn-lg {
  width: 100%;
  padding: 15px 20px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.84rem;
  border-radius: 9px;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Today shift list */
.shift-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shift-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-muted);
  flex-wrap: wrap;
}

.shift-item-title {
  font-weight: 700;
  font-size: 0.94rem;
}

.shift-item-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.empty-state {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px 8px;
}

/* Stats & Table */
.filter-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat-box {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-value {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--surface-muted);
}

.empty-cell {
  text-align: center !important;
  color: var(--text-muted);
  padding: 20px !important;
}

@media (max-width: 600px) {
  .user-meta {
    display: none;
  }
  .clock-time-lg {
    font-size: 2rem;
  }
}
