/* Composer card (B-031): tabs, the Notes editor with its toolbar and the @mention list. */
.composer { max-width: 1152px; background: var(--bg-surface); border-radius: var(--r-md); box-shadow: var(--shadow-raised); }
.composer-head { display: flex; align-items: flex-start; gap: var(--sp-4); padding: 0 var(--sp-4) 0 var(--sp-6); border-bottom: 1px solid var(--border); }
.composer-tabs { flex: 1; display: flex; flex-wrap: wrap; gap: var(--sp-2); min-width: 0; }
.composer-tab {
  display: inline-flex; align-items: center; gap: var(--sp-3); height: 40px; padding: 0 var(--sp-5); border: 0;
  border-bottom: 2px solid transparent; background: none; color: var(--text-2); font: inherit; cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.composer-tab .ic, .composer-tab svg { width: 16px; height: 16px; display: block; }
.composer-tab:hover { color: var(--text); border-bottom-color: var(--border-strong); }
.composer-tab.is-active { color: var(--link); background: var(--bg-info); border-bottom-color: var(--link); }
.composer-tab:focus-visible { outline: 2px solid var(--border-focus); outline-offset: -2px; }
.composer-close { flex: none; margin-top: var(--sp-2); }
.composer-close[hidden] { display: none; }
.composer-close .ic, .composer-close svg { width: 16px; height: 16px; }

.composer-prompt {
  display: block; width: 100%; padding: var(--sp-6); border: 0; background: none; color: var(--text-muted);
  font: inherit; text-align: left; cursor: text; border-radius: 0 0 var(--r-md) var(--r-md);
}
.composer-prompt:hover { color: var(--text-2); }
.composer-prompt:focus-visible { outline: 2px solid var(--border-focus); outline-offset: -2px; }
.composer-soon { padding: var(--sp-6); color: var(--text-muted); }

.note-panel { padding: var(--sp-6); animation: composer-open var(--t-med) var(--ease-enter); }
.note-editor-wrap { position: relative; }
.note-editor {
  min-height: 125px; max-height: 420px; overflow-y: auto; padding: var(--sp-5) var(--sp-6); border: 1px solid transparent;
  border-radius: var(--r-md); background: var(--bg-note); line-height: var(--lh-md); outline: none; overflow-wrap: anywhere;
  transition: border-color var(--t-fast) var(--ease);
}
.note-editor:focus { border-color: var(--yellow-icon); }
.note-editor.is-empty::before { content: attr(data-placeholder); color: var(--text-muted); pointer-events: none; }
.note-editor p { margin: 0; }
.note-editor ul, .note-editor ol { margin: var(--sp-2) 0; padding-left: var(--sp-7); }
.note-editor a { color: var(--link); }

.note-foot { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-5); flex-wrap: wrap; }
.note-foot-spacer { flex: 1; }
.note-toolbar { display: flex; align-items: center; gap: var(--sp-1); }
.note-tool {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--text-2); cursor: pointer;
}
.note-tool:hover { background: var(--bg-hover); color: var(--text); }
.note-tool:focus-visible { outline: 2px solid var(--border-focus); }
.note-tool .ic, .note-tool svg { width: 16px; height: 16px; display: block; }
.note-tool-sep { width: 1px; height: 20px; margin: 0 var(--sp-2); background: var(--border); }
.note-link-row { display: flex; gap: var(--sp-4); margin-top: var(--sp-4); }
.note-link-input.input { flex: 1; min-width: 0; }

.mention-list {
  position: absolute; z-index: 20; width: 240px; max-height: 260px; overflow-y: auto; padding: var(--sp-2) 0;
  border-radius: var(--r-md); background: var(--bg-surface); box-shadow: var(--shadow-popover);
  animation: composer-open var(--t-fast) var(--ease-enter);
}
.mention-option {
  display: flex; align-items: center; gap: var(--sp-4); width: 100%; height: 36px; padding: 0 var(--sp-5); border: 0;
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.mention-option.is-highlighted { background: var(--menu-hover-bg, var(--bg-hover)); color: var(--menu-hover-text, var(--text)); }
.mention-av { width: 24px; height: 24px; font-size: 10px; flex: none; }
.mention-empty { padding: var(--sp-4) var(--sp-5); color: var(--text-muted); }
@keyframes composer-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .note-panel, .mention-list { animation: none; } .composer-tab { transition: none; } }

/* ---- Files tab drop zone (B-032, file-drop.js) ---- */
.file-drop-wrap { padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.file-drop {
  min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4);
  border: 2px dashed var(--border-strong); border-radius: 6px; background: var(--bg-surface);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.file-drop.is-over { border-color: var(--blue-bright); background: var(--bg-info); }
.file-drop-row { display: flex; align-items: center; gap: var(--sp-4); }
.file-drop-text { color: var(--text); font-size: var(--fs-md); }
.file-progress { width: min(320px, 80%); height: 4px; border-radius: var(--r-pill); background: var(--bg-hover); overflow: hidden; }
.file-progress[hidden] { display: none; }
.file-progress-bar { width: 0; height: 100%; background: var(--green); transition: width var(--t-fast) linear; }
.file-error { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--red); }
.file-error:empty { display: none; }

/* ---- Email tab (B-057): the email composer itself is styled in mail.css ---- */
.composer .mail-composer { padding-top: var(--sp-2); }

/* ---- Pick times modal (components/pick-times.js; schedpolish-design.md B). Prefix `.pt-`. ---- */
.pt-body { display: flex; flex-direction: column; gap: var(--sp-5); }
.pt-top { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-6); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--border); }
.pt-field { display: inline-flex; align-items: center; gap: var(--sp-4); min-width: 0; }
.pt-label { font-size: var(--fs-sm); color: var(--text-2); }
.pt-field .select-trigger { min-width: 180px; max-width: 260px; }
.pt-tz { margin-left: auto; font-size: var(--fs-sm); color: var(--text-2); }
.pt-main { display: flex; align-items: flex-start; gap: var(--sp-7); }
.pt-cal { flex: 0 0 280px; border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); min-height: 120px; }
.pt-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.pt-cal-month { font-weight: var(--fw-semibold); }
.pt-cal-nav {
  width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--text); cursor: pointer;
}
.pt-cal-nav:hover:not(:disabled) { background: var(--bg-hover); }
.pt-cal-nav:disabled { color: var(--text-muted); cursor: default; }
.pt-cal-nav .ic, .pt-cal-nav svg { width: 16px; height: 16px; display: block; }
.pt-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-1); text-align: center; }
.pt-cal-wd { font-size: var(--fs-xs); color: var(--text-2); padding-bottom: var(--sp-2); }
.pt-day {
  position: relative; width: 32px; height: 32px; margin: 0 auto; padding: 0; border: 0; border-radius: 50%; background: none;
  color: var(--text-muted); font: inherit; cursor: default;
}
.pt-day.is-open { color: var(--text); font-weight: var(--fw-semibold); cursor: pointer; }
.pt-day.is-open:hover { background: var(--bg-selected); }
.pt-day.is-selected, .pt-day.is-selected:hover { background: var(--blue-bright); color: var(--text-inverse); }
.pt-day.has-pick::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--gold);
}
.pt-day:focus-visible, .pt-slot:focus-visible, .pt-unpick:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.pt-times-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.pt-times-head { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.pt-times { display: flex; flex-wrap: wrap; gap: var(--sp-3); max-height: 260px; overflow-y: auto; }
.pt-slot {
  display: inline-flex; align-items: center; gap: var(--sp-2); height: 32px; padding: 0 var(--sp-5);
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-surface); color: var(--text);
  font: inherit; cursor: pointer;
}
.pt-slot:hover:not(:disabled) { border-color: var(--blue-bright); }
.pt-slot.is-picked { background: var(--bg-selected); border-color: var(--blue-bright); color: var(--blue); font-weight: var(--fw-semibold); }
.pt-slot:disabled { color: var(--text-muted); cursor: default; }
.pt-slot-check, .pt-slot-check svg { width: 14px; height: 14px; display: block; }
.pt-day-empty, .pt-loading { color: var(--text-2); }
.pt-cap { font-size: var(--fs-sm); color: var(--text-2); }
.pt-cap[hidden] { display: none; }
.pt-picked {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); padding-top: var(--sp-5); border-top: 1px solid var(--border);
}
.pt-picked-label { font-size: var(--fs-sm); color: var(--text-2); }
.pt-picked-none { font-size: var(--fs-sm); color: var(--text-muted); }
.tpl-chip.pt-chip { display: inline-flex; align-items: center; gap: var(--sp-2); }
.pt-unpick {
  width: 18px; height: 18px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--text-2); cursor: pointer;
}
.pt-unpick:hover { background: var(--bg-hover); color: var(--text); }
.pt-unpick .ic, .pt-unpick svg { width: 12px; height: 12px; display: block; }
@media (max-width: 760px) {
  .pt-main { flex-direction: column; align-items: stretch; }
  .pt-cal { flex: none; }
  .pt-tz { margin-left: 0; }
}
