:root {
  /* Brand palette — see Notion brand guide */
  --fh-primary: #9FAB8B;            /* Almond Green (brand signature) */
  --fh-primary-dark: #7e8b6e;
  --fh-primary-soft: #C1D2C7;       /* Valbonne — light sage */
  --fh-bg: #F5F0E8;                 /* warm cream (in-store aesthetic) */
  --fh-ink: #2C2C2C;                /* deep charcoal — softened black for readability */
  --fh-muted: #6e6e6e;
  --fh-grey: #CECCCC;               /* Light Grey from brand */
  --fh-card: #FFFFFF;
  --fh-border: rgba(44, 44, 44, 0.10);
  --fh-shadow: 0 1px 2px rgba(44, 44, 44, 0.05), 0 4px 12px rgba(44, 44, 44, 0.06);
}

* { -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--fh-bg);
  color: var(--fh-ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.fh-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 18px 96px;
  min-height: 100dvh;
}

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

.fh-logo-btn {
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.05s, opacity 0.15s;
}
.fh-logo-btn:hover { opacity: 0.85; }
.fh-logo-btn:active { transform: scale(0.97); }
.fh-logo-btn:focus-visible { outline: 2px solid var(--fh-primary); outline-offset: 4px; }

.fh-logo {
  display: block;
  height: 40px;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.fh-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fh-employee-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fh-ink);
  background: var(--fh-card);
  border: 1px solid var(--fh-border);
  border-radius: 999px;
  box-shadow: var(--fh-shadow);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.fh-employee-chip:hover { border-color: var(--fh-primary); }
.fh-employee-chip svg { color: var(--fh-muted); }

.fh-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  background: var(--fh-card);
  border: 1px solid var(--fh-border);
  border-radius: 999px;
  padding: 4px 4px;
  box-shadow: var(--fh-shadow);
}
.fh-lang button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--fh-muted);
  font-weight: 500;
  cursor: pointer;
}
.fh-lang button.active {
  background: var(--fh-primary);
  color: white;
}

.fh-card {
  background: var(--fh-card);
  border-radius: 18px;
  border: 1px solid var(--fh-border);
  box-shadow: var(--fh-shadow);
  padding: 18px;
  margin-bottom: 14px;
}

.fh-card h2 {
  font-size: 22px;
  margin: 0 0 12px 0;
}

.fh-prompt {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 18px;
}

.fh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--fh-primary);
  color: white;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(44,44,44,.08), 0 2px 6px rgba(44,44,44,.06);
}
.fh-btn:hover { background: var(--fh-primary-dark); }
.fh-btn:active { transform: translateY(1px); }
.fh-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.fh-btn-secondary {
  background: var(--fh-card);
  color: var(--fh-ink);
  border: 1px solid var(--fh-border);
}
.fh-btn-secondary:hover { background: #fafafa; }

.fh-btn-ghost {
  background: transparent;
  color: var(--fh-muted);
  border: 0;
  font-weight: 500;
  min-height: 44px;
  font-size: 14px;
}

.fh-btn-row {
  display: flex;
  gap: 10px;
}
.fh-btn-row .fh-btn { flex: 1; }

.fh-tap-list { display: flex; flex-direction: column; gap: 10px; }
.fh-tap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  background: var(--fh-card);
  border: 1px solid var(--fh-border);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 500;
  color: var(--fh-ink);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--fh-shadow);
  transition: transform 0.05s, border-color 0.15s;
}
.fh-tap:hover { border-color: var(--fh-primary); }
.fh-tap:active { transform: translateY(1px); }
.fh-tap.fh-tap-lg { min-height: 80px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

.fh-tap-arrow { color: var(--fh-muted); font-size: 22px; }

.fh-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}
.fh-emoji-btn {
  min-height: 60px;
  padding: 10px 8px;
  border: 1px solid var(--fh-border);
  background: var(--fh-card);
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.fh-emoji-btn:hover { border-color: var(--fh-primary); }
.fh-emoji-btn.active {
  border-color: var(--fh-primary);
  background: rgba(159, 171, 139, 0.12);
}

.fh-input, .fh-textarea, .fh-select {
  width: 100%;
  background: white;
  border: 1px solid var(--fh-border);
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 16px;
  color: var(--fh-ink);
  font-family: inherit;
}
.fh-textarea { min-height: 96px; resize: vertical; }
.fh-input:focus, .fh-textarea:focus, .fh-select:focus {
  outline: 2px solid var(--fh-primary);
  outline-offset: 1px;
  border-color: transparent;
}

.fh-section-label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fh-muted);
  font-weight: 600;
  margin: 18px 0 8px;
}

.fh-checklist-section { margin-top: 12px; }
.fh-checklist-section h3 {
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fh-muted);
  margin: 16px 0 8px;
}
.fh-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--fh-card);
  border: 1px solid var(--fh-border);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background 0.15s;
}
.fh-check-row:hover { background: #fafafa; }
.fh-check-row.checked {
  background: rgba(159, 171, 139, 0.10);
  border-color: rgba(159, 171, 139, 0.45);
}
.fh-check-row .fh-check-box {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--fh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  background: white;
}
.fh-check-row.checked .fh-check-box {
  background: var(--fh-primary);
  border-color: var(--fh-primary);
  color: white;
}
.fh-check-row .fh-check-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}
.fh-check-row .fh-check-label {
  font-size: 15px;
  line-height: 1.35;
}
.fh-check-row.checked .fh-check-label { color: var(--fh-muted); text-decoration: line-through; text-decoration-thickness: 1px; }

.fh-photo-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fh-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(159, 171, 139, 0.15);
  color: #4d5640;
  border: 1px solid rgba(159, 171, 139, 0.45);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.fh-photo-btn:hover { background: rgba(159, 171, 139, 0.25); }
.fh-photo-btn svg { flex-shrink: 0; }

.fh-photo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fh-photo-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--fh-border);
}
.fh-photo-link {
  background: transparent;
  border: 0;
  padding: 4px 6px;
  color: var(--fh-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.fh-photo-link:hover { color: var(--fh-ink); }

.fh-week-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fh-muted);
  background: rgba(206, 204, 204, 0.4);
  border-radius: 999px;
}
.fh-week-badge.today {
  background: rgba(159, 171, 139, 0.22);
  color: #4d5640;
}
.fh-week-badge.done {
  background: rgba(193, 210, 199, 0.55);
  color: #4d5640;
}
.fh-check-row.done-this-week {
  opacity: 0.7;
}
.fh-check-row.done-this-week .fh-check-label {
  color: var(--fh-muted);
}

.fh-counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(159, 171, 139, 0.18);
  color: #4d5640;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.fh-today-line {
  font-size: 13px;
  color: var(--fh-muted);
  margin: 8px 2px 16px;
  font-style: italic;
}

.fh-error {
  background: #fff4ef;
  border: 1px solid #f4c8b6;
  color: #9c3a14;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 12px;
}

.fh-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 18px;
}
.fh-success .check-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--fh-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  margin-bottom: 18px;
}
.fh-success h2 {
  font-size: 32px;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fh-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fh-muted);
}

.fh-rain-toggle {
  display: inline-flex;
  background: white;
  border: 1px solid var(--fh-border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.fh-rain-toggle button {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--fh-muted);
  font-weight: 500;
  cursor: pointer;
}
.fh-rain-toggle button.active {
  background: var(--fh-primary);
  color: white;
}

.fh-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--fh-border);
  font-size: 15px;
}
.fh-summary-row:last-child { border-bottom: 0; }
.fh-summary-row dt { color: var(--fh-muted); font-weight: 500; }
.fh-summary-row dd { margin: 0; text-align: right; max-width: 60%; }

[x-cloak] { display: none !important; }
