  :root {
    --snow: #F0F4F8;
    --ice: #DBE9F4;
    --sky: #2B7FBF;
    --sky-dark: #1A5C8C;
    --pine: #2D5A3D;
    --pine-light: #3D7A53;
    --gold: #E8A020;
    --gold-light: #FFF3D6;
    --danger: #C0392B;
    --danger-light: #FDECEA;
    --slate: #2C3E50;
    --slate-mid: #5D6D7E;
    --slate-light: #8496A9;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --page-bg: #F5F8FA;
    --border: #D5E3EF;
    --radius: 12px;
    --radius-sm: 7px;
    --shadow: 0 2px 12px rgba(43,127,191,0.10);
    --shadow-lg: 0 8px 32px rgba(43,127,191,0.16);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: var(--font); background: var(--page-bg); color: var(--slate); min-height: 100vh; }

  /* NAV */
  nav { background: var(--sky-dark); color: white; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 56px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
  .nav-logo { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; display: flex; align-items: center; gap: 8px; }
  .nav-logo span { font-size: 22px; }
  .nav-links { display: flex; gap: 4px; }
  .nav-link { color: rgba(255,255,255,0.78); text-decoration: none; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; transition: background 0.15s, color 0.15s; cursor: pointer; border: none; background: transparent; }
  .nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.15); color: white; }
  .nav-edit-btn { background: var(--gold); color: var(--slate); border: none; padding: 6px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
  .nav-edit-btn:hover { opacity: 0.88; }

  /* HERO */
  .hero { background: linear-gradient(135deg, var(--sky-dark) 0%, var(--sky) 60%, #5BAED6 100%); color: white; padding: 3rem 1.5rem 2.5rem; position: relative; overflow: hidden; }
  .hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
  .hero-inner { max-width: 860px; margin: 0 auto; position: relative; }
  .hero-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 12px; }
  .hero-sub { font-size: 16px; opacity: 0.88; max-width: 520px; line-height: 1.6; margin-bottom: 24px; }
  .hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 500; }
  .chip.done { background: rgba(40,180,90,0.28); border-color: rgba(40,180,90,0.4); }

  /* PAGE SECTIONS */
  .page { display: none; max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
  .page.active { display: block; }

  /* SECTION TITLES */
  .section-title { font-size: 20px; font-weight: 700; color: var(--slate); margin: 2rem 0 1rem; display: flex; align-items: center; gap: 10px; }
  .section-title .icon { font-size: 22px; }

  /* CARDS */
  .card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 12px; box-shadow: var(--shadow); transition: box-shadow 0.15s; }
  .card:hover { box-shadow: var(--shadow-lg); }
  .card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .card-title { font-size: 16px; font-weight: 600; color: var(--slate); margin-bottom: 4px; }
  .card-meta { font-size: 13px; color: var(--slate-mid); }
  .card-actions { display: flex; gap: 6px; flex-shrink: 0; }
  .btn-icon { border: none; background: none; cursor: pointer; padding: 5px 7px; border-radius: var(--radius-sm); font-size: 15px; transition: background 0.12s; }
  .btn-icon:hover { background: var(--ice); }
  .btn-icon.delete:hover { background: var(--danger-light); }

  /* BADGES */
  .badge { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
  .badge-urgent { background: var(--danger-light); color: var(--danger); }
  .badge-done { background: #D5F5E3; color: #1E8449; }
  .badge-info { background: var(--ice); color: var(--sky-dark); }
  .badge-warn { background: var(--gold-light); color: #8A6000; }
  .badge-pine { background: #D5EAD9; color: var(--pine); }

  /* CHECKLIST ITEMS */
  .check-list { list-style: none; }
  .check-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
  .check-item:last-child { border-bottom: none; }
  .check-item input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--sky); margin-top: 1px; cursor: pointer; flex-shrink: 0; }
  .check-label { font-size: 14px; color: var(--slate); flex: 1; line-height: 1.4; cursor: pointer; }
  .check-label.checked { text-decoration: line-through; color: var(--slate-light); }
  .check-sub { font-size: 12px; color: var(--slate-mid); display: block; margin-top: 2px; }
  .check-item-actions { display: flex; gap: 4px; flex-shrink: 0; }

  /* TIMELINE */
  .timeline { position: relative; }
  .tl-item { display: flex; gap: 16px; }
  .tl-left { display: flex; flex-direction: column; align-items: center; min-width: 72px; }
  .tl-time { font-size: 12px; font-weight: 600; color: var(--sky); padding-top: 2px; text-align: center; }
  .tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--sky); margin: 6px 0 0; flex-shrink: 0; }
  .tl-line { flex: 1; width: 2px; background: var(--border); margin: 2px 0; min-height: 14px; }
  .tl-body { padding-bottom: 18px; flex: 1; }
  .tl-title { font-size: 14px; font-weight: 600; color: var(--slate); }
  .tl-desc { font-size: 13px; color: var(--slate-mid); margin-top: 3px; line-height: 1.5; }

  /* GRID */
  .cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
  .mini-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
  .mini-card-title { font-size: 13px; font-weight: 600; color: var(--slate-mid); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }

  /* PERSON TABS */
  .person-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
  .person-tab { padding: 7px 15px; border-radius: 999px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 500; cursor: pointer; background: white; color: var(--slate-mid); transition: all 0.15s; }
  .person-tab.active { border-color: var(--sky); background: var(--sky); color: white; }
  .person-panel { display: none; }
  .person-panel.active { display: block; }
  .progress-wrap { height: 7px; background: var(--ice); border-radius: 999px; margin: 8px 0 4px; }
  .progress-bar { height: 7px; background: var(--sky); border-radius: 999px; transition: width 0.3s; }
  .progress-label { font-size: 12px; color: var(--slate-light); margin-bottom: 16px; }

  /* FORMS / MODALS */
  .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; align-items: center; justify-content: center; padding: 1rem; }
  .modal-overlay.open { display: flex; }
  .modal { background: white; border-radius: var(--radius); padding: 1.75rem; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
  .modal h3 { font-size: 18px; font-weight: 700; margin-bottom: 1.25rem; color: var(--slate); }
  .form-group { margin-bottom: 1rem; }
  .form-label { font-size: 13px; font-weight: 600; color: var(--slate-mid); margin-bottom: 5px; display: block; }
  .form-input, .form-select, .form-textarea { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font); color: var(--slate); background: white; transition: border-color 0.15s; }
  .form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--sky); }
  .form-textarea { min-height: 80px; resize: vertical; }
  .form-row { display: flex; gap: 10px; }
  .form-row .form-group { flex: 1; }
  .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 1.25rem; }
  .btn { padding: 9px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: opacity 0.15s, transform 0.1s; }
  .btn:active { transform: scale(0.97); }
  .btn-primary { background: var(--sky); color: white; }
  .btn-primary:hover { opacity: 0.9; }
  .btn-secondary { background: var(--ice); color: var(--sky-dark); }
  .btn-secondary:hover { opacity: 0.85; }
  .btn-danger { background: var(--danger-light); color: var(--danger); }
  .btn-danger:hover { opacity: 0.85; }
  .btn-success { background: #27AE60; color: white; }

  /* ADD BUTTONS */
  .add-btn { display: flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--radius-sm); border: 1.5px dashed var(--sky); background: transparent; color: var(--sky); font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.12s; margin-top: 8px; }
  .add-btn:hover { background: var(--ice); }

  /* TOAST */
  .toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--slate); color: white; padding: 11px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; z-index: 999; opacity: 0; transform: translateY(10px); transition: all 0.25s; pointer-events: none; }
  .toast.show { opacity: 1; transform: translateY(0); }
  .toast.success { background: #27AE60; }
  .toast.error { background: var(--danger); }

  /* URGENT STRIP */
  .urgent-strip { background: var(--danger-light); border: 1px solid #F5C6C2; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
  .urgent-strip-icon { font-size: 20px; flex-shrink: 0; }
  .urgent-strip-text { font-size: 13px; color: var(--danger); font-weight: 500; line-height: 1.5; }

  /* EDIT MODE indicator */
  .edit-mode-bar { background: var(--gold); color: var(--slate); padding: 8px 1.5rem; font-size: 13px; font-weight: 600; text-align: center; display: none; }
  .edit-mode-bar.show { display: block; }

  /* RESPONSIVE */
  @media (max-width: 600px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 26px; }
    .page { padding: 1.5rem 1rem 3rem; }
    .modal { padding: 1.25rem; }
  }

  /* PRINT */
  @media print {
    nav, .add-btn, .card-actions, .btn-icon, .modal-overlay, .edit-mode-bar, .toast { display: none !important; }
    .page { display: block !important; }
    body { background: white; }
  }
