/* PathQuick: the Serena Jobs palette and layout (Texas Pathology navy, Kevin's dusty rose),
   copied from ../Serenajobs.ai/site/styles.css on November 20, 2026, keeping only what this
   page uses. The wordmark is Jost, like PathReport's. */
:root {
  --navy: #0E172F;
  --navy-hover: #25314F;
  --navy-deep: #16203C;
  --navy-divider: #1B2540;
  --on-navy: #F4F6F8;
  --on-navy-soft: #DDE3EE;
  --on-navy-muted: #A9B3C4;
  --slate: #4D5B76;
  --paper: #F4F6F8;
  --ink: #1A1A1A;
  --placeholder: #8792A6;
  --raised: #FFFFFF;
  --line: #DDE3EE;
  --rose: #BBA49F;
  --blush: #F6EFED;
  --error: #A12A2A;
  --font-heading: "EB Garamond", Garamond, Georgia, serif;
  --font-ui: "Source Sans 3", Calibri, system-ui, sans-serif;
  --font-mark: "Jost", "Futura", system-ui, sans-serif;
  --btn: 44px; --btn-radius: 10px; --icon: 24px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { background-color: #F4F6F8; }
body {
  margin: 0; font-family: var(--font-ui); background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.ui-icon { width: var(--icon); height: var(--icon); display: block; }

/* ---- Top toolbar ---- */
.toolbar {
  background: var(--navy); color: var(--on-navy);
  display: flex; align-items: center; justify-content: space-between; gap: 10px 14px;
  padding: max(8px, env(safe-area-inset-top)) 16px 8px;
}
.logo { display: flex; align-items: center; gap: 10px; margin: 0; }
.logo-mark { height: 26px; width: auto; flex: none; } /* the pq mark, cropped tight (74 × 41.5) */
.logo-text { font-family: var(--font-mark); font-weight: 500; font-size: 1.7rem; letter-spacing: 0.01em; color: var(--rose); }

.seg { display: flex; gap: 2px; background: var(--navy-deep); padding: 3px; border-radius: 12px; margin-right: auto; margin-left: 18px; }
.seg-btn {
  background: transparent; color: var(--on-navy-soft); border: none; border-radius: var(--btn-radius);
  padding: 8px 16px; min-height: 40px; cursor: pointer;
}
.seg-btn:hover { background: var(--navy-hover); }
.seg-btn.active { background: var(--rose); color: var(--navy); font-weight: 600; }

.toolbar-actions { display: flex; gap: 6px; }
.logout-btn {
  background: transparent; color: var(--on-navy-soft); border: 1px solid var(--navy-hover);
  border-radius: var(--btn-radius); cursor: pointer;
}
.logout-btn:hover { background: var(--navy-hover); }
.icon-btn { width: var(--btn); height: var(--btn); padding: 0; display: grid; place-items: center; }

/* The microphone: rose with a pulsing ring while listening (like Serena's big mic). */
.mic-toggle .mic-off { display: none; }
.mic-toggle[aria-pressed="true"] { background: var(--rose); color: var(--navy); border-color: var(--rose); animation: mic-ring 1.6s ease-out infinite; }
.mic-toggle[aria-pressed="true"] .mic-on { display: none; }
.mic-toggle[aria-pressed="true"] .mic-off { display: block; }
@keyframes mic-ring { 0% { box-shadow: 0 0 0 0 rgba(187, 164, 159, 0.7); } 100% { box-shadow: 0 0 0 12px rgba(187, 164, 159, 0); } }

.share-btn {
  background: var(--rose); color: var(--navy); border: none; border-radius: 6px;
  padding: 10px 18px; min-height: 44px; font-weight: 600; cursor: pointer;
}
.share-btn:hover { background: var(--navy); color: var(--on-navy); }
.share-btn.small { min-height: 40px; padding: 6px 16px; }
.share-btn:disabled { opacity: 0.6; cursor: default; }

/* ---- Left sidebar: clock, calendars, weather (as Serena) ---- */
body.with-sidebar { flex-direction: row; height: 100vh; height: 100dvh; overflow: hidden; background: transparent; }
html:has(body.with-sidebar) { background: linear-gradient(to right, #0E172F 176px, #F4F6F8 176px); }
.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: auto; }
.sidebar {
  width: 176px; flex: none; background: var(--navy); color: var(--on-navy-soft);
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
  padding: calc(var(--bar-h, 60px) + 12px) 12px max(18px, env(safe-area-inset-bottom));
}
.sidebar p { margin: 0; line-height: 1.4; }
.sb-clock { display: flex; align-items: baseline; gap: 4px; color: var(--on-navy); flex: none; }
.sb-time { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 500; line-height: 1; }
.sb-ampm { font-family: var(--font-heading); font-size: 1.1rem; color: var(--on-navy-muted); }
.sb-date { white-space: pre-line; color: var(--rose); margin: 6px 0 14px !important; font-size: 0.95rem; flex: none; }
#sbCalendars { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.sb-month { margin-bottom: 14px; }
.sb-month-name { font-family: var(--font-heading); font-weight: 500; font-size: 1.2rem; color: var(--on-navy); margin: 0 0 4px; }
.sb-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center; font-size: 0.78rem; }
.sb-dow { color: var(--on-navy-muted); font-weight: 600; font-size: 0.75rem; padding-bottom: 2px; }
.sb-day { color: var(--on-navy-soft); padding: 2px 0; }
.sb-day.today { background: var(--rose); border-radius: 50%; color: var(--navy); font-weight: 700; }
.sb-month:not(.current) { opacity: 0.45; }
.sb-weather { border-top: 1px solid var(--navy-hover); padding-top: 12px; margin-top: 4px; flex: none; }
.sb-temp { font-family: var(--font-heading); font-size: 2.4rem; line-height: 1.05; color: var(--on-navy); }
.sb-sky { font-weight: 600; color: var(--on-navy); font-size: 1.05rem; margin-bottom: 4px !important; }
.sb-place { color: var(--rose); margin-top: 6px !important; }
.sb-place.sb-askable { cursor: pointer; }

/* ---- Compose: landing area above two panes ---- */
main { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 14px 16px max(14px, env(safe-area-inset-bottom)); }
.compose { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.landing, .pane {
  background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column;
}
.landing { flex: none; }
.landing.listening { border-color: var(--rose); box-shadow: 0 0 0 3px var(--blush); }
.pane-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.pane-head h2 { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; color: var(--navy); }
.pane-head .copy { margin-left: auto; }
.pane-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.msg { color: var(--slate); font-size: 0.95rem; }
.msg.error { color: var(--error); }
textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--raised-soft, #FAFBFC); resize: vertical;
}
textarea::placeholder { color: var(--placeholder); }
textarea:focus { outline: 2px solid var(--rose); outline-offset: 0; }
#notes { min-height: 84px; }
.heard { margin: 4px 0 0; min-height: 1.3em; color: var(--slate); font-style: italic; }
.panes { flex: 1; min-height: 320px; display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.pane textarea { flex: 1; resize: none; min-height: 200px; }
.pane.writing textarea { background: var(--blush); }
.footnote { margin: 0; text-align: center; color: var(--slate); font-size: 0.85rem; }

.cp-small {
  background: var(--raised); color: var(--navy); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 10px; min-height: 40px; cursor: pointer;
}
.cp-small:hover { border-color: var(--rose); }
.cp-small:disabled { opacity: 0.45; cursor: default; }
.cp-icon {
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: var(--raised); color: var(--navy); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.cp-icon svg { width: 20px; height: 20px; }
.cp-icon:hover { border-color: var(--rose); }
.cp-icon.done { background: var(--rose); border-color: var(--rose); }

/* ---- Sign-in ---- */
.signin { flex: 1; display: grid; place-items: center; }
.signin-card {
  width: min(380px, 100%); background: var(--raised); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.signin-mark { height: 48px; width: auto; align-self: center; }
.signin-card h2 { margin: 0; text-align: center; font-family: var(--font-heading); font-weight: 600; color: var(--navy); }
.signin-card label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--slate); }
.signin-card input { padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }

/* ---- Notice ---- */
.notice {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  background: var(--navy); color: var(--on-navy); padding: 10px 18px; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(14, 23, 47, 0.28); max-width: min(560px, 92vw); white-space: pre-line;
}
.notice.error { background: var(--error); }

/* ---- Ask AI panel (as Serena) ---- */
.claude-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw);
  display: flex; flex-direction: column; background: var(--raised);
  border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(14, 23, 47, 0.18);
  z-index: 18; padding-top: env(safe-area-inset-top); container-type: inline-size;
}
.cp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--navy); color: var(--on-navy); }
.cp-head h2 { flex: 1; margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: 1.4rem; color: var(--rose); }
.cp-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--navy-hover); background: transparent; color: var(--on-navy); font-size: 1.1rem; cursor: pointer; }
.cp-head .cp-small { background: transparent; color: var(--on-navy-soft); border-color: var(--navy-hover); }
.cp-who-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 14px 0; flex-wrap: nowrap; }
.cp-seg { display: flex; gap: 4px; background: var(--paper); padding: 4px; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.cp-seg-btn { background: transparent; border: none; border-radius: 6px; padding: 8px 11px; min-height: 40px; color: var(--navy); cursor: pointer; white-space: nowrap; }
.cp-seg-btn.active { background: var(--navy); color: var(--on-navy); font-weight: 600; }
.ai-logo { width: 22px; height: 22px; display: block; }
.ai-name { display: none; }
.cp-links { display: flex; gap: 6px; margin-left: auto; flex: none; }
.cp-out { white-space: nowrap; padding: 6px 8px; }
.cp-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.cp-chip { background: var(--blush); color: var(--navy); border: 1px solid var(--rose); border-radius: 999px; padding: 6px 12px; min-height: 40px; cursor: pointer; }
.cp-chip:hover { background: var(--raised); }
.cp-log { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.cp-hint { color: var(--slate); margin: 0; }
.cp-msg { border-radius: 10px; padding: 10px 12px; }
.cp-msg.from-you { background: var(--paper); align-self: flex-end; max-width: 90%; }
.cp-msg.from-claude { background: var(--blush); border: 1px solid var(--rose); }
.cp-who { margin: 0 0 4px; font-size: 0.8rem; font-weight: 600; color: var(--slate); }
.cp-who-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cp-who-row .cp-who { margin: 0; }
.cp-text { margin: 0; white-space: pre-wrap; line-height: 1.5; color: var(--ink); }
.cp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cp-actions .cp-small { padding: 6px 8px; }
.cp-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 14px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cp-include { grid-column: 1 / -1; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.cp-include input { width: 20px; height: 20px; accent-color: var(--navy); }
.cp-form textarea { font-size: 16px; padding: 10px; border: 1px solid var(--on-navy-muted); border-radius: 8px; resize: none; }
.cp-form .share-btn { align-self: end; }
@container (max-width: 380px) { .cp-who-bar, .cp-links { gap: 4px; } .ai-btn { padding: 8px 9px; } .cp-out { padding: 6px; } }
@container (max-width: 345px) { .cp-arrow { display: none; } }

/* ---- Smaller screens ---- */
@media (max-width: 1000px) { .panes { grid-template-columns: 1fr; } .pane textarea { min-height: 140px; } }
@media (max-width: 700px) {
  .sidebar { display: none; }
  html:has(body.with-sidebar) { background: #F4F6F8; }
  body.with-sidebar { height: auto; overflow: auto; }
  .toolbar { flex-wrap: wrap; }
  .seg { margin-left: 0; }
  .logo-text { font-size: 1.4rem; }
}

/* ---- Change password ---- */
.pw-dialog { border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(380px, 92vw); box-shadow: 0 10px 30px rgba(14, 23, 47, 0.3); }
.pw-dialog::backdrop { background: rgba(14, 23, 47, 0.45); }
.pw-dialog form { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.pw-dialog h2 { margin: 0; font-family: var(--font-heading); font-weight: 600; color: var(--navy); }
.pw-dialog label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--slate); }
.pw-dialog input { padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
.pw-dialog .msg { margin: 0; }
.pw-actions { display: flex; justify-content: flex-end; gap: 8px; }
