/* ======================================================
   SPROUT MVP - styles.css (cleaned + organized)
   ====================================================== */

/* ===============================
   Root variables
   =============================== */

:root {
  --pf-max-width: 720px;
  --pf-border: #ddd;
  --pf-bg: #fff;
  --pf-muted: #666;
  --pf-text: #111;
  --pf-soft: #fafafa;
  --pf-soft2: #f0f0f0;
  --pf-accent: #111;
  --pf-primary: #111;
  --pf-blue: #2d6cdf;
}

[data-theme="dark"] {
  --pf-border: #444;
  --pf-bg: #1a1a1a;
  --pf-muted: #aaa;
  --pf-text: #e0e0e0;
  --pf-soft: #2a2a2a;
  --pf-soft2: #333;
  --pf-accent: #e0e0e0;
  --pf-primary: #e0e0e0;
  --pf-blue: #4a9eff;
}

/* Dark mode specific overrides */
[data-theme="dark"] .pf-section {
  background: var(--pf-bg);
  border-color: var(--pf-border);
}

[data-theme="dark"] .pf-goal-card {
  background: var(--pf-bg);
  border-color: var(--pf-border);
}

[data-theme="dark"] .pf-input,
[data-theme="dark"] .pf-goal-field {
  background: var(--pf-soft);
  border-color: var(--pf-border);
  color: var(--pf-text);
}

[data-theme="dark"] .pf-btn,
[data-theme="dark"] .pf-goal-create-toggle,
[data-theme="dark"] .pf-open-archive,
[data-theme="dark"] .pf-archive-back,
[data-theme="dark"] .pf-goal-cancel,
[data-theme="dark"] .pf-reflection-modify,
[data-theme="dark"] .pf-goal-actions,
[data-theme="dark"] .pf-status-actions {
  background: var(--pf-soft2);
  border: none;
  color: var(--pf-text);
  background-clip: padding-box;
  appearance: none;
}

[data-theme="dark"] .pf-btn:hover,
[data-theme="dark"] .pf-goal-create-toggle:hover,
[data-theme="dark"] .pf-open-archive:hover,
[data-theme="dark"] .pf-archive-back:hover,
[data-theme="dark"] .pf-goal-cancel:hover,
[data-theme="dark"] .pf-reflection-modify:hover,
[data-theme="dark"] .pf-goal-actions:hover,
[data-theme="dark"] .pf-status-actions:hover {
  background: var(--pf-soft);
}

[data-theme="dark"] .pf-nav-drawer {
  background: var(--pf-soft2);
  border-color: var(--pf-border);
}

[data-theme="dark"] .pf-nav-hamburger {
  background: var(--pf-soft2);
  border: 1px solid var(--pf-border);
  color: var(--pf-text);
}

[data-theme="dark"] .pf-nav-link {
  color: var(--pf-text);
}

[data-theme="dark"] .pf-nav-link:hover {
  background: var(--pf-soft);
}

[data-theme="dark"] .pf-scale-btn {
  border-color: var(--pf-border);
  background: var(--pf-soft);
  color: var(--pf-text);
}

[data-theme="dark"] .pf-scale-btn.active {
  background: var(--pf-accent);
  color: var(--pf-bg);
  border-color: var(--pf-accent);
}

[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--pf-soft);
  border-color: var(--pf-border);
  color: var(--pf-text);
}

[data-theme="dark"] .pf-status-banner.is-info { background: #1a1a2a; }
[data-theme="dark"] .pf-status-banner.is-success { background: #1a2a1a; }
[data-theme="dark"] .pf-status-banner.is-error { background: #2a1a1a; }

[data-theme="dark"] .pf-status-close {
  background: var(--pf-soft);
  color: var(--pf-text);
  border-color: var(--pf-border);
}

[data-theme="dark"] .pf-modal {
  background: var(--pf-soft);
  color: var(--pf-text);
}

[data-theme="dark"] .pf-app-footer {
  border-color: var(--pf-border);
  color: var(--pf-muted);
}

* { box-sizing: border-box; }

html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  margin: 0;
  color: var(--pf-text);
  background: var(--pf-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1 { margin: 0 0 16px; }
h2 { 
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--pf-muted);
  text-align: center;
 }
h3 { text-align: center; }

/* ===============================
   Layout containers
   =============================== */

.pf-app-header,
.pf-app-main,
.pf-app-footer {
  width: 100%;
}

.pf-app-main {
  max-width: var(--pf-max-width);
  margin: 0 auto;
  padding: 16px;
}

/* ===============================
   Header
   =============================== */

.pf-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--pf-border);
  background: var(--pf-bg);
}

.pf-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pf-app-logo {
  width: 24px;
  height: 24px;
}

.pf-app-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.pf-nav-hamburger {
  padding: 8px 12px;
  border-radius: 8px;
}

/* ===============================
   Navigation drawer
   =============================== */

.pf-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 999;
}

.pf-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100%;
  background: var(--pf-bg);
  border-left: 1px solid var(--pf-border);
  box-shadow: -10px 0 30px rgba(0,0,0,0.10);
  z-index: 1000;
}

.pf-nav-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px;
}

.pf-nav-header {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 800;
}

.pf-nav-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pf-nav-link {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  background: var(--pf-soft);
  color: var(--pf-text);
  text-align: left;
}

.pf-nav-link:hover {
  background: var(--pf-soft2);
}

.pf-nav-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--pf-border);
}

.pf-nav-logout {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff3f3;
  border: 1px solid #f1bcbc;
  color: #8b1d1d;
  text-align: left;
  text-decoration: none;
}

/* ===============================
   Footer
   =============================== */

.pf-app-footer {
  max-width: var(--pf-max-width);
  margin: 0 auto;
  padding: 16px;
  border-top: 1px solid var(--pf-border);
  color: var(--pf-muted);
  font-size: 12px;
  text-align: center;
}

/* ===============================
   Forms & Inputs
   =============================== */

label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}

.pf-form,
.pf-goal-fields label,
.pf-section label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Override for Related Goals checkboxes only */
.pf-activities .pf-activity-goal-item {
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
  padding: 2px 0;
  line-height: 1.2;
}

.pf-activities .pf-activity-goal-item input[type="checkbox"] {
  margin: 0;
}

/* ======================================================
   Default: All primary action buttons align right
   ====================================================== */

/* Any Save / Update button inside a section */
.pf-section .pf-btn {
  display: block;
  margin-left: auto;
}


/* ======================================================
   Primary action buttons: right-align by default
   ====================================================== */

/* Buttons that are direct children of a section (ex: Current State Save) */
.pf-section > .pf-btn {
  display: block;
  margin-left: auto;
  margin-top: 16px;
}

/* Button rows (ex: Activities Save/Cancel wrapper) */
.pf-activity-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}


input[type="text"],
input[type="number"],
input[type="date"],
textarea,
select,
.pf-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
}

input[type="date"],
select {
  width: 50%;
}

textarea {
  resize: vertical;
}

/* ===============================
   Buttons
   =============================== */

button,
.pf-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--pf-primary);
  background: var(--pf-primary);
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
}

button:hover,
.pf-btn:hover {
  filter: brightness(0.95);
}

button:disabled,
.pf-date:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pf-goal-actions,
.pf-status-actions,
.pf-goal-cancel,
.pf-reflection-modify,
.pf-archive-back,
.pf-open-archive {
  background: #fff;
  color: var(--pf-text);
  border: 1px solid var(--pf-border);
  background-clip: padding-box;
  border-radius: 10px;
}

.pf-goal-archive {
  background: #fff6e8;
  border: 1px solid #f2d3a6;
  color: #6b3f00;
}

.pf-goal-completed {
  background: #f3fff4;
  border: 1px solid #bfe7c5;
  color: #135b24;
}

/* ===============================
   Scales (1–5)
   =============================== */

.pf-scale {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.pf-scale-btn {
  min-width: 44px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-weight: 600;
}

.pf-scale-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ===============================
   Status banner
   =============================== */

.pf-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin: 12px 0;
  border: 1px solid var(--pf-border);
  border-radius: 10px;
}

.pf-status-banner.is-info { background: #f5f7ff; }
.pf-status-banner.is-success { background: #f3fff4; }
.pf-status-banner.is-error { background: #fff3f3; }

.pf-status-message { font-size: 14px; }

.pf-status-close {
  padding: 6px 12px;
  font-size: 18px;
  line-height: 1;
  background: #fff;
  color: #111;
  border: 1px solid var(--pf-border);
}

.pf-status-retry {
  padding: 9px 12px;
}

/* ===============================
   Login required
   =============================== */

.pf-login-required {
  max-width: 420px;
  margin: 60px auto;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  background: var(--pf-soft);
}

.pf-login-button {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  background: var(--pf-blue);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}

/* ===============================
   Daily page
   =============================== */

.pf-date-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.pf-date-wrap label { margin: 0; }

.pf-daily-container {
  display: grid;
  gap: 14px;
}

.pf-section {
  padding: 12px;
}

.pf-section h3 {
  margin: 0 0 10px;
}

.pf-morning-display .pf-display-row {
  margin: 8px 0;
}

.pf-current-notice {
  margin-top: 10px;
  color: var(--pf-muted);
  font-size: 13px;
}

/* Saved activities */

.pf-activity-saved-heading {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
}

.pf-activity-saved-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pf-activity-saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: small;
}

.pf-activity-saved-text {
  flex: 1;
  font-size: small;
}

/* Make "Morning saved" look like other saved rows */
.pf-activity-saved-item .pf-collapsed {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pf-saved-area {
  margin-top: 18px;
}

/* Backward compatibility */

/* ===============================
   Goals page
   =============================== */

.pf-goals-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pf-goals-subtitle {
  font-weight: 700;
  color: var(--pf-muted);
}

.pf-goals-list,
.pf-archive-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.pf-goal-card {
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  overflow: hidden;
}

.pf-goal-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: var(--pf-soft);
  cursor: pointer;
}

.pf-goal-summary:hover {
  background: var(--pf-soft2);
}

.pf-goal-name {
  font-weight: 800;
  line-height: 1.2;
}

.pf-goal-meta {
  font-size: 13px;
  color: var(--pf-muted);
  white-space: nowrap;
}

.pf-goal-details {
  padding: 12px;
}

.pf-goal-create {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--pf-border);
}

.pf-goal-create-toggle {
  width: 100%;
  background: #fff;
  color: #111;
  border: 1px solid var(--pf-border);
}

.pf-goal-create-form {
  display: flex !important;
  flex-direction: column;
}

.pf-goal-create-save {
  align-self: flex-end;
  margin-top: 16px;
}

/* ===============================
   Reflection page
   =============================== */

.pf-weekly-reflection-form {
  margin-top: 12px;
  padding: 12px;
}

.pf-reflection-readonly {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: var(--pf-soft);
  border: 1px solid var(--pf-border);
  border-radius: 12px;
}

.pf-reflection-readonly strong {
  display: inline-block;
  margin-bottom: 6px;
}

/* Related Goals (Activities): vertical list, checkbox left of goal name */
.pf-activity-goal-checkboxes {
  display: flex;
  flex-direction: column; /* each goal on its own row */
  gap: 10px;
  margin-bottom: 16px;
}

.pf-activity-goal-item {
  display: flex;
  flex-direction: row;    /* checkbox left, text right */
  align-items: center;
  gap: 8px;
}

/* Right-align any primary button placed directly in main (ex: Reflection "Modify") */
.pf-app-main > .pf-btn {
  display: block;
  margin-left: auto;
  margin-top: 16px;
}

/* Extra explicit (safe) */
.pf-reflection-modify {
  display: block;
  margin-left: auto;
  margin-top: 16px;
}

/* Right-align action buttons inside any pf-form (includes Weekly Reflections) */
.pf-form > .pf-btn {
  align-self: flex-end;
  margin-top: 16px;
}


/* ===== SPROUTS: Daily progress + modal ===== */

.pf-progress-wrap{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(0,0,0,0.08);
  z-index: 9999;
}
body.admin-bar .pf-progress-wrap{ top: 32px; }
@media (max-width: 782px){
  body.admin-bar .pf-progress-wrap{ top: 46px; }
}

.pf-progress-bar{
  height: 100%;
  width: 0%;
  transition: width 260ms ease, background-color 260ms ease;
  background: rgba(0,0,0,0.35);
}
.pf-progress-wrap.is-complete .pf-progress-bar{
  background: #2e7d32;
}

.pf-daily-container{
  padding-top: 10px;
}

.pf-collapsed{
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

.pf-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}
.pf-modal{
  width: min(520px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.pf-modal h3{ margin-top: 0; }
.pf-modal-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.pf-current-list{
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0;
}
.pf-current-item{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.pf-current-actions-row{
  margin-top: 8px;
}
.pf-activity-saved-actions{
  display: flex;
  gap: 8px;
}

.pf-current-actions-row .pf-current-delete {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* ======================================================
   SPROUTS PATCH: Current State action row alignment
   - Keep Update + Delete on same line, right-aligned
   - Override global .pf-section .pf-btn right-align rule inside this row
   ====================================================== */

.pf-current-actions-row{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 16px;
}

.pf-current-actions-row .pf-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  margin-top: 0 !important;
  white-space: nowrap;
}

/* If your delete button uses this class, ensure no stray margins */
.pf-current-actions-row .pf-current-delete{
  margin: 0 !important;
}
/* ======================================================
   SPROUTS PATCH: Action rows (Activities + Current State)
   - Right-align button groups with consistent spacing
   ====================================================== */

.pf-activity-form-actions{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 16px;
}

.pf-activity-form-actions .pf-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  margin-top: 0 !important;
  white-space: nowrap;
}

/* Styling for the new Cancel button in Current State */
.pf-current-actions-row .pf-current-cancel {
  background: var(--pf-soft2);
  color: var(--pf-text);
  border: 1px solid var(--pf-border);
  margin: 0 !important;
}

.pf-current-actions-row .pf-current-cancel:hover {
  background: #e5e5e5;
}

/* ===============================
   Goals page form tweaks
   =============================== */

.pf-goal-fields input[type="date"],
.pf-goal-create-form input[type="date"],
.pf-goal-fields input[type="number"],
.pf-goal-create-form input[type="number"] {
  width: 100%;
}

/* ===============================
   Activity flow updates
   =============================== */

.pf-activity-create-wrap {
  margin-top: 10px;
}

.pf-activity-select {
  width: 100%;
}

.pf-field-label {
  margin-top: 12px;
  font-weight: 700;
}

.pf-manage-activities-modal {
  max-height: 85vh;
  overflow-y: auto;
  width: min(720px, 92vw);
}

.pf-manage-activities-list {
  max-height: 60vh;
  overflow-y: auto;
}

.pf-manage-activity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.pf-manage-activity-name {
  flex: 1;
  min-width: 0;
}

.pf-manage-activity-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

/* ==========================================================================
   Sprouts App Custom Time Picker Modal
   ========================================================================== */

/* 1. Modal Overlay (Fades in/out) */
.sprouts-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center; /* Centers the modal vertically and horizontally */
    z-index: 9999; /* Ensure it's on top of everything */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* State when the modal is active */
.sprouts-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 2. Modal Container (The floating dark box) */
.sprouts-modal-container {
    background-color: #2c2c2e; /* Dark iOS style modal background */
    border-radius: 20px;
    width: 90%;
    max-width: 400px; /* Adjust as needed */
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

/* 3. Picker Header */
.ios-picker-header h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #aeaeae;
}

/* 4. Wheels Container (The main interaction area) */
.ios-picker-wheels-container {
    display: flex;
    position: relative;
    height: 200px; /* Total height of the visible wheels */
    overflow: hidden;
    background-color: #1c1c1e; /* Darker interior */
    border-radius: 12px;
    margin-bottom: 20px;
    
    /* Creates the fading illusion at the top and bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

/* 5. The selection highlight bar (The static transparent bar) */
.picker-selection-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 40px; /* Must match the individual item height */
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.05); /* Slight transparent grey highlight */
    pointer-events: none; /* Let clicks pass through to the wheels */
}

/* 6. Individual Wheel Styles */
.picker-wheel {
    flex: 1;
    height: 100%;
    overflow-y: scroll; /* Standard scrolling */
    
    /* Core CSS for the "iOS feel" snapping */
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch; /* Momentum scrolling on mobile */
}

/* Hide scrollbars for cleaner look */
.picker-wheel::-webkit-scrollbar {
    display: none;
}

/* 7. Wheel Items */
.wheel-item {
    height: 40px; /* Crucial: Must be consistent for snapping */
    line-height: 40px; /* Vertically centers the number */
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    color: #8e8e93; /* Unselected items color */
    
    /* CSS Snap Point */
    scroll-snap-align: center;
    transition: color 0.2s ease, font-size 0.2s ease;
}

/* When the item is centered/selected */
.wheel-item.is-selected {
    color: white;
    font-size: 26px;
}

/* Spacers to center the first and last valid items */
.wheel-spacer {
    height: 80px; /* Total height - one item height, divided by 2 ( (200-40)/2 ) */
}

/* 8. Action Buttons (Reset/Confirm) */
.sprouts-picker-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-btn {
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    padding: 10px 20px;
    transition: background-color 0.2s ease;
}

.btn-reset {
    background-color: #3a3a3c;
    color: #aeaeae;
}

.btn-confirm {
    background-color: #007aff; /* iOS blue accent */
    color: white;
    border-radius: 50%; /* Circle shape matching your image */
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.btn-confirm:active {
    background-color: #0056b3;
}

.pf-duration-display {
  display: block;
  width: 100%;
  color: var(--pf-text);
  background: #fff;
  text-align: left;
  font-weight: 400;
}

/* ── Import Page ─────────────────────────────────────── */
.pf-import-container { display: flex; flex-direction: column; gap: 1rem; }

.pf-import-enrichment {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--pf-border, #eee);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pf-import-act-select { font-size: 13px; padding: 4px 6px; width: 100%; }

/* ── Calendar Import ─────────────────────────────────── */
.pf-cal-import { margin-top: 1rem; }
.pf-cal-file-input { display: none; }
.pf-cal-file-label { display: inline-block; cursor: pointer; margin-bottom: 1rem; }
.pf-cal-preview { margin-top: 0.75rem; }
.pf-cal-empty { color: var(--pf-muted); font-size: 13px; }

.pf-cal-event-list { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.pf-cal-event-item { border-bottom: 1px solid var(--pf-border, #e5e5e5); padding: 0.5rem 0; }
.pf-cal-event-item.pf-cal-imported { opacity: 0.45; }

.pf-cal-event-label { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; }
.pf-cal-checkbox { margin-top: 3px; flex-shrink: 0; }
.pf-cal-event-info { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.pf-cal-event-top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.pf-cal-event-sub { display: flex; align-items: center; gap: 0.4rem; }

.pf-cal-time { font-size: 12px; color: var(--pf-muted); white-space: nowrap; }
.pf-cal-allday-badge { font-size: 11px; background: #e8f0fe; color: #1a73e8; padding: 1px 6px; border-radius: 3px; font-weight: 600; }
.pf-cal-name { font-size: 14px; }
.pf-cal-allday-hint { font-size: 12px; color: var(--pf-muted); }
.pf-cal-allday-time { font-size: 13px; padding: 2px 6px; width: auto; }
.pf-cal-imported-note { font-size: 12px; color: var(--pf-muted); }
.pf-cal-import-btn { margin-top: 0.25rem; }