/* The Playbook page's styles (moved here from playbook.html unchanged, 2026-11-26, so the managers home, lp/welcome.html,
   uses the same rules). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:            #f4f2ee;
  --surface:       #ffffff;
  --surface-raised:#f0ede8;
  --border:        rgba(0,0,0,0.10);
  --border-hover:  rgba(0,0,0,0.22);
  --gold:          #9a6f20;
  --gold-dim:      rgba(154,111,32,0.7);
  --cream:         #1a1612;
  --cream-dim:     #5a5248;
  --red:           #c0392b;
  --blue:          #2b5f8a;
  --green:         #2e6644;
  --purple:        #5e3d7a;
  --slate:         #4a5f6e;
  --radius:        10px;
  --shadow:        0 2px 12px rgba(0,0,0,0.08);

  /* category colors */
  --c-delegate: #c0392b;
  --c-work:     #2b5f8a;
  --c-learn:    #2e6644;
  --c-think:    #5e3d7a;

  /* priority colors */
  --p-high:   #c0392b;
  --p-medium: #9a6f20;
  --p-low:    #4a5f6e;
}

body { background: var(--bg); color: var(--cream); font-family: 'Inter', sans-serif; min-height: 100vh; }

/* ── LOGIN ── */
#loginOverlay { position: fixed; inset: 0; background: rgba(240,237,232,0.92); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
#loginOverlay.hidden { display: none !important; }
.login-card { background: #fff; border: 1px solid var(--border-hover); border-radius: 20px; padding: 44px 40px; max-width: 420px; width: 90%; text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,0.18); }
.login-mascot img { width: 150px; margin-bottom: 18px; }
.login-title { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--gold); margin-bottom: 6px; }
.login-tagline { font-family: 'Playfair Display', serif; font-size: 0.88rem; color: var(--cream-dim); font-style: italic; margin-bottom: 28px; }
.btn-google { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #333; padding: 13px 26px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; }
.btn-google:hover { box-shadow: 0 4px 20px rgba(255,255,255,0.15); transform: translateY(-1px); }
.login-fine-print { margin-top: 18px; font-size: 0.72rem; color: var(--cream-dim); opacity: 0.55; font-style: italic; }

/* ── LAYOUT ── */
.page-wrap { width: 100%; padding: 24px 28px 60px; }

/* ── HEADER ── */
.pb-header { display: flex; align-items: flex-start; gap: 18px; background: var(--surface-raised); border: 1px solid var(--border-hover); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.pb-header-logo img { width: 94px; height: auto; }
.pb-header-main { flex: 1; }
.pb-header-title { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--gold); letter-spacing: 0.04em; line-height: 1.1; }
.pb-header-sub { font-size: 0.78rem; color: var(--cream-dim); font-style: italic; margin-top: 2px; }
.pb-date-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.day-btn { background: transparent; border: 1px solid var(--border); color: var(--cream-dim); padding: 4px 10px; border-radius: 20px; font-size: 0.78rem; cursor: pointer; transition: all 0.15s; font-family: 'Inter', sans-serif; }
.day-btn.active, .day-btn:hover { background: rgba(200,151,58,0.12); border-color: var(--gold-dim); color: var(--gold); }
.pb-date-label { font-size: 0.82rem; color: var(--cream-dim); }
.pb-header-right { text-align: right; font-size: 0.78rem; color: var(--cream-dim); }
.pb-back-link { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-dim); font-size: 0.8rem; text-decoration: none; margin-bottom: 4px; transition: color 0.15s; }
.pb-back-link:hover { color: var(--gold); }

/* ── QUOTE ── */
.pb-quote-box { background: var(--surface); border-left: 3px solid var(--gold-dim); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 16px; margin-bottom: 20px; font-family: 'Playfair Display', serif; font-style: italic; font-size: 0.95rem; color: var(--cream-dim); min-height: 48px; }
.pb-quote-box::before { content: '"'; color: var(--gold); font-size: 1.4rem; line-height: 0; vertical-align: -0.3em; margin-right: 4px; }

/* ── HEALTH CHECK ── */
.pb-health { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; }
.pb-health-label { font-size: 0.72rem; font-weight: 700; color: var(--cream-dim); letter-spacing: 0.06em; text-transform: uppercase; margin-right: 4px; }
.health-check { display: flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.health-check input[type=checkbox] { display: none; }
.health-check .hc-box { width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--border-hover); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; transition: all 0.15s; background: var(--surface-raised); }
.health-check input:checked + .hc-box { background: rgba(74,124,89,0.3); border-color: var(--green); }
.health-check .hc-box::after { content: ''; }
.health-check input:checked + .hc-box::after { content: '✓'; color: #6fcf97; font-weight: 700; }
.health-check .hc-label { font-size: 0.75rem; color: var(--cream-dim); }

/* ── TWO-COLUMN BODY ── */
.pb-body { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
@media (max-width: 700px) { .pb-body { grid-template-columns: 1fr; } }

/* ── SIDEBAR (left column) ── */
.pb-sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sidebar-section-header { background: var(--surface-raised); border-bottom: 1px solid var(--border); padding: 8px 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold-dim); }
.sidebar-rows { display: flex; flex-direction: column; }
.sidebar-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--border); min-height: 34px; cursor: text; }
.sidebar-row:last-child { border-bottom: none; }
.sidebar-row-num { font-size: 0.65rem; color: var(--cream-dim); opacity: 0.7; width: 14px; flex-shrink: 0; text-align: right; }
.sidebar-input { background: transparent; border: none; outline: none; color: var(--cream); font-family: 'Inter', sans-serif; font-size: 0.8rem; flex: 1; min-width: 0; width: 100%; }
.sidebar-input::placeholder { color: var(--cream-dim); opacity: 0.55; }
.sidebar-row:focus-within { background: var(--surface-raised); }

/* ── MAIN TASK TABLE ── */
.pb-main { display: flex; flex-direction: column; gap: 14px; }

/* TASKS SECTION */
.pb-tasks-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pb-tasks-header { display: grid; grid-template-columns: 32px 80px 96px 1fr 80px; gap: 0; background: var(--surface-raised); border-bottom: 1px solid var(--border-hover); }
.pb-tasks-header span { padding: 8px 10px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold-dim); border-right: 1px solid var(--border); }
.pb-tasks-header span:last-child { border-right: none; }
.task-row { display: grid; grid-template-columns: 32px 80px 96px 1fr 80px; gap: 0; border-bottom: 1px solid var(--border); align-items: stretch; transition: background 0.12s; }
.task-row:last-child { border-bottom: none; }
.task-row { cursor: pointer; }
.task-row:hover { background: rgba(154,111,32,0.06); }
.task-row.done-row { opacity: 0.45; }
.task-row.done-row .task-text-cell { text-decoration: line-through; color: var(--cream-dim); }
.task-cell { padding: 7px 10px; border-right: 1px solid var(--border); display: flex; align-items: center; font-size: 0.82rem; min-width: 0; }
.task-cell:last-child { border-right: none; }
.task-num { font-size: 0.65rem; color: var(--cream-dim); opacity: 0.45; justify-content: center; }
.task-cat-cell { }
.task-pri-cell { }
.task-text-cell { color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-done-cell { justify-content: center; }

/* category pill */
.cat-pill { font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; letter-spacing: 0.04em; white-space: nowrap; }
.cat-delegate { background: rgba(214,76,63,0.15); color: var(--c-delegate); border: 1px solid rgba(214,76,63,0.3); }
.cat-work     { background: rgba(61,107,142,0.15); color: var(--c-work);     border: 1px solid rgba(61,107,142,0.3); }
.cat-learn    { background: rgba(74,124,89,0.15);  color: var(--c-learn);    border: 1px solid rgba(74,124,89,0.3); }
.cat-think    { background: rgba(124,90,142,0.15); color: var(--c-think);    border: 1px solid rgba(124,90,142,0.3); }
.cat-none     { background: rgba(138,122,106,0.1); color: var(--cream-dim);  border: 1px solid var(--border); }

/* priority pill */
.pri-pill { font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; letter-spacing: 0.04em; white-space: nowrap; }
.pri-high   { background: rgba(214,76,63,0.15); color: var(--p-high);   border: 1px solid rgba(214,76,63,0.3); }
.pri-medium { background: rgba(200,151,58,0.15); color: var(--p-medium); border: 1px solid rgba(200,151,58,0.3); }
.pri-low    { background: rgba(94,112,128,0.15);  color: var(--p-low);    border: 1px solid rgba(94,112,128,0.3); }
.pri-none   { background: transparent; color: var(--cream-dim); border: 1px solid var(--border); }

/* done checkbox */
.done-toggle { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--border-hover); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; background: var(--surface-raised); transition: all 0.15s; flex-shrink: 0; }
.done-toggle.checked { background: rgba(74,124,89,0.3); border-color: var(--green); color: #6fcf97; }

/* empty state */
.pb-empty { padding: 24px; text-align: center; color: var(--cream-dim); font-style: italic; font-size: 0.85rem; }

/* ── TASK MODAL ── */
#taskModal { position: fixed; inset: 0; z-index: 8000; display: none; align-items: flex-start; justify-content: center; background: rgba(20,16,12,0.55); backdrop-filter: blur(4px); padding: 0; }
#taskModal.open { display: flex; }
.task-modal-inner { background: var(--surface); width: 100%; height: 100%; max-width: 100%; display: flex; flex-direction: column; overflow: hidden; }
.task-modal-header { display: flex; align-items: center; gap: 12px; padding: 18px 24px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; background: var(--surface-raised); }
.task-modal-close { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border-hover); background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--cream-dim); flex-shrink: 0; transition: background 0.12s; }
.task-modal-close:hover { background: var(--surface-raised); color: var(--cream); }
.task-modal-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-modal-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.task-modal-done-btn { padding: 6px 16px; border-radius: 20px; border: 1px solid var(--border-hover); background: var(--surface-raised); color: var(--cream-dim); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.task-modal-done-btn.done { background: rgba(46,102,68,0.2); border-color: var(--green); color: #6fcf97; }
.task-modal-body { flex: 1; overflow-y: auto; padding: 28px 32px 40px; }
.task-modal-title { font-family: 'Playfair Display', serif; font-size: 1.55rem; color: var(--cream); margin-bottom: 20px; line-height: 1.35; }
.task-modal-desc { font-size: 0.92rem; color: var(--cream-dim); line-height: 1.75; white-space: pre-wrap; word-break: break-word; }

/* ── EISENHOWER MATRIX ── */
.pb-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.matrix-quad { background: var(--surface); padding: 12px; min-height: 100px; }
.matrix-quad-header { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.q1-header { color: var(--c-delegate); }
.q2-header { color: var(--c-work); }
.q3-header { color: var(--c-learn); }
.q4-header { color: var(--c-think); }
.matrix-label { display: inline-block; font-size: 0.62rem; padding: 1px 6px; border-radius: 10px; font-weight: 700; }
.matrix-item { font-size: 0.78rem; color: var(--cream); padding: 3px 0; border-bottom: 1px solid var(--border); line-height: 1.4; }
.matrix-item:last-child { border-bottom: none; }
.matrix-empty { font-size: 0.75rem; color: var(--cream-dim); opacity: 0.4; font-style: italic; }
.matrix-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.68rem; color: var(--cream-dim); padding: 8px 0 2px; justify-content: center; }
.matrix-legend span { display: flex; align-items: center; gap: 4px; }

/* ── CONTACTS FOLLOW-UP ── */
.pb-contacts { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pb-contacts-header { background: var(--surface-raised); border-bottom: 1px solid var(--border); padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; }
.pb-contacts-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold-dim); }
.contact-row { display: grid; grid-template-columns: 24px 1fr 1fr 90px; gap: 0; border-bottom: 1px solid var(--border); align-items: center; }
.contact-row:last-child { border-bottom: none; }
.contact-row.contact-head { background: var(--surface-raised); }
.contact-cell { padding: 7px 10px; font-size: 0.78rem; border-right: 1px solid var(--border); }
.contact-cell:last-child { border-right: none; }
.contact-head .contact-cell { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-dim); }
.contact-num { font-size: 0.65rem; color: var(--cream-dim); opacity: 0.45; text-align: center; justify-self: center; }
.contact-input { background: transparent; border: none; outline: none; color: var(--cream); font-family: 'Inter', sans-serif; font-size: 0.78rem; width: 100%; }
.contact-input::placeholder { color: var(--cream-dim); opacity: 0.3; }

/* ── FILTER BAR ── */
.pb-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.f-pill { background: transparent; border: 1px solid var(--border); color: var(--cream-dim); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; cursor: pointer; transition: all 0.15s; font-family: 'Inter', sans-serif; }
.f-pill:hover, .f-pill.active { background: rgba(200,151,58,0.1); border-color: var(--gold-dim); color: var(--gold); }
.f-pill.f-delegate.active { background: rgba(214,76,63,0.12); border-color: var(--c-delegate); color: var(--c-delegate); }
.f-pill.f-work.active     { background: rgba(61,107,142,0.12);  border-color: var(--c-work);     color: var(--c-work); }
.f-pill.f-learn.active    { background: rgba(74,124,89,0.12);   border-color: var(--c-learn);    color: var(--c-learn); }
.f-pill.f-think.active    { background: rgba(124,90,142,0.12);  border-color: var(--c-think);    color: var(--c-think); }
.f-pill.f-high.active     { background: rgba(214,76,63,0.12); border-color: var(--p-high);   color: var(--p-high); }
.f-pill.f-medium.active   { background: rgba(200,151,58,0.12);border-color: var(--p-medium); color: var(--p-medium); }
.f-pill.f-low.active      { background: rgba(94,112,128,0.12); border-color: var(--p-low);   color: var(--p-low); }
.filter-sep { width: 1px; height: 18px; background: var(--border); margin: 0 2px; }
.f-label { font-size: 0.68rem; color: var(--cream-dim); letter-spacing: 0.05em; text-transform: uppercase; }
.pb-stats { font-size: 0.75rem; color: var(--cream-dim); margin-left: auto; }
.pb-stats strong { color: var(--gold); }

/* ── NOTES / CREATIVE TEXTAREA ── */
.pb-textarea { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--cream); font-family: 'Inter', sans-serif; font-size: 0.82rem; padding: 12px 14px; resize: vertical; min-height: 80px; outline: none; transition: border-color 0.15s; }
.pb-textarea:focus { border-color: var(--border-hover); }
.pb-textarea::placeholder { color: var(--cream-dim); opacity: 0.35; }

/* ── SECTION TITLES ── */
.pb-section-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.pb-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .pb-tasks-header, .task-row { grid-template-columns: 28px 70px 78px 1fr; }
  .pb-tasks-header span:last-child, .task-done-cell { display: none; }
  .contact-row { grid-template-columns: 20px 1fr 90px; }
  .contact-row .contact-cell:nth-child(3) { display: none; }
}
