/* Coaching notes drafted from the week's Wrap-ups (portal rethink stage 6;
   coachnotes.js). The owner's drafted notes (CONFIG.COACHING_NOTES) and a
   member's latest sent note (the stage 5 MEMBER_DAY switch). Every rule is
   scoped under .cn. Red only for "needs a conversation". */
.cn { --cn-ink: #111; --cn-card: #fff; --cn-line: #E3E3DC; --cn-line2: #EFEFE9; --cn-mute: #73736D; --cn-col: #EBEBE4; --cn-red: #D6362B; --cn-y: #F5C500;
  color: var(--cn-ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; padding: 4px 0 28px; }
.cn button { font: inherit; color: inherit; }
.cn .cn-mute { color: var(--cn-mute); }
.cn .cn-grow { flex: 1; }
.cn-top { display: flex; justify-content: flex-end; margin: 0 0 14px; }
.cn-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #EBEBE4; }
.cn-seg-o { height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: #73736D; font: 500 14px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.cn-seg-o.is-on { background: #fff; color: #111; font-weight: 600; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08); }
.cn .cn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border: 1px solid var(--cn-line);
  border-radius: 10px; background: var(--cn-card); font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cn .cn-btn:hover { background: #FAFAF7; }
.cn .cn-btn.is-k { background: var(--cn-ink); border-color: var(--cn-ink); color: #fff; }
.cn .cn-btn.is-y { background: var(--cn-y); border-color: var(--cn-y); }
.cn .cn-btn.is-soft { background: var(--cn-col); border-color: transparent; }
.cn .cn-btn.is-quiet { border-color: transparent; background: none; color: var(--cn-mute); font-weight: 500; }
.cn .cn-btn[disabled] { opacity: .45; cursor: default; }
.cn .cn-link { padding: 0; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--cn-mute); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; vertical-align: middle; }
.cn .cn-empty { margin: 8px 0; padding: 28px 30px; background: var(--cn-card); border: 1px solid var(--cn-line); border-radius: 14px; max-width: 640px; }
.cn .cn-empty b { display: block; font-size: 16px; margin-bottom: 6px; }
.cn .cn-empty p { margin: 0 0 12px; color: var(--cn-mute); font-size: 14px; line-height: 1.5; }
.cn .cn-ro { margin: 0 0 10px; font-size: 13.5px; }

.cn .cn-head { margin: 4px 0 20px; }
.cn .cn-head h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.cn .cn-head p { margin: 6px 0 0; color: var(--cn-mute); font-size: 15px; }

/* avatars */
.cn .cn-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; background: #5E6A78; }
.cn .cn-av.is-big { width: 54px; height: 54px; font-size: 20px; }
.cn .cn-av-1 { background: #7A6450; } .cn .cn-av-2 { background: #586E5A; } .cn .cn-av-3 { background: #7A5C6E; } .cn .cn-av-4 { background: #4F6A86; } .cn .cn-av-5 { background: #6E6A5A; }

/* owner: people beside the note */
.cn .cn-split { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.cn .cn-list { display: flex; flex-direction: column; background: var(--cn-card); border: 1px solid var(--cn-line); border-radius: 14px; overflow: hidden; }
.cn .cn-list-h { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 18px 12px; }
.cn .cn-list-h b { font-size: 15.5px; font-weight: 600; }
.cn .cn-list-h span { font-size: 13px; color: var(--cn-mute); }
.cn .cn-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 18px 8px 15px; border: 0; border-top: 1px solid var(--cn-line2);
  border-left: 3px solid transparent; background: none; text-align: left; cursor: pointer; }
.cn .cn-row:hover { background: #FAFAF7; }
.cn .cn-row.is-talk { border-left-color: var(--cn-red); }
.cn .cn-row.is-sel { background: #FFF6D1; }
.cn .cn-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cn .cn-row-main b { font-size: 15px; font-weight: 600; }
.cn .cn-row-main span { font-size: 13.5px; color: var(--cn-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn .cn-row.is-sent .cn-row-main b, .cn .cn-row.is-skipped .cn-row-main b { color: var(--cn-mute); font-weight: 500; }
.cn .cn-dots { flex: none; display: inline-flex; gap: 4px; }
.cn .cn-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #111; box-sizing: border-box; }
.cn .cn-dots i.is-on { background: #111; }
.cn .cn-list-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--cn-line2); font-size: 14px; color: var(--cn-mute); }

.cn .cn-note-card { display: flex; flex-direction: column; min-height: 560px; padding: 24px 32px 20px; background: var(--cn-card); border: 1px solid var(--cn-line); border-radius: 14px; }
.cn .cn-note-card.is-empty { justify-content: center; align-items: center; }
.cn .cn-note-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cn .cn-note-h h2 { margin: 0; font-size: 19px; font-weight: 600; }
.cn .cn-note-h p { margin: 3px 0 0; font-size: 14px; }
.cn .cn-by { display: flex; align-items: center; gap: 6px; color: var(--cn-mute); }
.cn .cn-note-card h3 { margin: 20px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--cn-mute); }
.cn .cn-facts { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.7; }
.cn .cn-text { margin: 0; max-width: 720px; font-size: 15.5px; line-height: 1.6; }
.cn .cn-goal { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.cn .cn-talk, .cn .cn-private { margin: 0 0 4px; padding: 12px 14px; border-radius: 10px; background: #F7F7F2; font-size: 14px; line-height: 1.5; }
.cn .cn-talk b { color: var(--cn-red); }
.cn .cn-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--cn-line2); }
.cn .cn-foot p { margin: 0; font-size: 14px; }
.cn .cn-note-card > .cn-goal, .cn .cn-note-card > .cn-text:last-of-type { margin-bottom: 28px; }
.cn .cn-note-card:not(.is-empty) { justify-content: flex-start; }

/* editing */
.cn .cn-edit { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.cn .cn-f { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--cn-mute); }
.cn .cn-f textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--cn-line); border-radius: 9px; font: inherit; font-weight: 400; font-size: 15px; line-height: 1.55; color: var(--cn-ink); resize: vertical; }
.cn .cn-f textarea:focus { outline: 2px solid #111; outline-offset: -1px; }
.cn .cn-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cn .cn-hint { color: var(--cn-mute); font-size: 13px; }
.cn .cn-note { margin: 0; font-size: 13.5px; }
.cn .cn-note.is-you { color: var(--cn-red); }

/* member: the latest note, with the week's numbers and past goals beside it */
.cn .cn-mgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cn .cn-mmain { display: flex; flex-direction: column; gap: 18px; }
.cn-member .cn-note-card { min-height: 0; }
.cn .cn-card { padding: 18px 22px; background: var(--cn-card); border: 1px solid var(--cn-line); border-radius: 14px; }
.cn .cn-card > header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 15.5px; }
.cn .cn-mside { display: flex; flex-direction: column; gap: 18px; }
.cn .cn-num .cn-mute { flex: none; white-space: nowrap; font-size: 13px; }
.cn .cn-num { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--cn-line2); font-size: 14.5px; line-height: 1.4; }
.cn .cn-num:first-of-type { border-top: 0; }
.cn .cn-erow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--cn-line2); font-size: 14.5px; }

@media (max-width: 1100px) {
  .cn .cn-split, .cn .cn-mgrid { grid-template-columns: minmax(0, 1fr); }
  .cn .cn-note-card { min-height: 0; }
}

/* Rethink 17: the drafted notes on the phone (coachnotes.js phoneTakes, inside #ios-coaching):
   one column, 16px gutters, the page title as on Today, the actions wrap under the line. */
.cn.cn-phone { padding: 4px 16px 28px; }
.cn.cn-phone .cn-top { justify-content: flex-start; margin: 4px 0 12px; }
.cn.cn-phone .cn-seg { display: flex; width: 100%; }
.cn.cn-phone .cn-seg-o { flex: 1; min-height: 40px; }
.cn.cn-phone .cn-head h1 { font-size: 22px; line-height: 1.25; }
.cn.cn-phone .cn-split { gap: 14px; }
.cn.cn-phone .cn-row { min-height: 58px; }
.cn.cn-phone .cn-note-card { padding: 18px 16px 16px; }
.cn.cn-phone .cn-foot { flex-wrap: wrap; }
.cn.cn-phone .cn-foot p { flex: 1 1 100%; }
.cn.cn-phone .cn-foot .cn-grow { display: none; }
.cn.cn-phone .cn-btn { min-height: 44px; }
.cn.cn-pbar { padding: 6px 16px 0; }
.cn.cn-phone .cn-ptitle { margin: 4px 0 10px; font-size: 34px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }

/* Rethink 21: a team member's latest note on the phone (memberPhoneTakes): one column, 16px gutters. */
.cn.cn-member.is-phone { padding: 4px 0 8px; }
.cn.cn-member.is-phone .cn-mgrid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cn.cn-member.is-phone .cn-head h1 { font-size: 26px; line-height: 1.2; }
.cn.cn-member.is-phone .cn-erow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.cn.cn-member.is-phone .cn-foot { flex-wrap: wrap; gap: 10px; }
.cn.cn-member.is-phone .cn-btn { min-height: 44px; }
