/* Call Notes (T232): shared look for /callnotes/* pages, Lead Weasel palette */
:root { --navy: #09243F; --lead-blue: #82BCEF; --toolbox-blue: #A9D4F3; --ice-blue: #E5F3FC; --paper: #FCFBF8;
  --muted: #3a5a7a; --line: #cfe3f3; --ok: #1F8A5B; --okbg: #E3F4EC; --warn: #9A6200; --warnbg: #FFF3DA; --err: #B3261E; --errbg: #FDECEA; }
* { box-sizing: border-box; }
body { font-family: 'Barlow', sans-serif; background: var(--paper); color: var(--navy); margin: 0; }
h1 { font-family: 'Bowlby One SC', cursive; font-size: 22px; margin: 4px 0 4px; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; max-width: 640px; }
.wrap { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--ice-blue); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.lbl { font: 700 12px 'Barlow Condensed', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; min-width: 220px; }
input[type=text], textarea { width: 100%; padding: 9px 10px; border-radius: 8px; border: 1.5px solid var(--toolbox-blue); background: var(--paper); color: var(--navy); font: 14px 'Barlow', sans-serif; }
textarea { resize: vertical; min-height: 70px; line-height: 1.4; }
input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.btn { padding: 9px 16px; border-radius: 8px; border: 1.5px solid var(--navy); background: var(--paper); color: var(--navy); font: 600 14px 'Barlow', sans-serif; cursor: pointer; }
.btn.primary { background: var(--navy); color: var(--paper); }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .45; cursor: default; }
.chip { display: inline-block; font: 600 12px 'Barlow', sans-serif; border-radius: 99px; padding: 2px 9px; background: var(--paper); color: var(--navy); white-space: nowrap; }
.chip.ok { background: var(--okbg); color: var(--ok); }
.chip.warn { background: var(--warnbg); color: var(--warn); }
.co { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.co b { font-size: 18px; }
.calls { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); max-height: 380px; overflow-y: auto; }
.call { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); cursor: pointer; background: var(--paper); }
.call:first-child { border-top: 0; }
.call.sel { background: #d9edfb; }
.call.dis { cursor: default; opacity: .55; }
.call .meta { color: var(--muted); font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; font-size: 13px; }
.grp { font: 700 12px 'Barlow Condensed', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fmts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.fmt { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; background: var(--paper); text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 3px; }
.fmt.sel { border-color: var(--navy); background: #d9edfb; }
.fmt .who { font-size: 11.5px; color: var(--muted); }
.bar { height: 8px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--navy); transition: width .4s; }
.sect { display: flex; flex-direction: column; gap: 5px; }
.sect h4 { margin: 0; font-size: 14px; }
.tx { max-height: 420px; overflow: auto; display: flex; flex-direction: column; gap: 8px; background: var(--paper); border-radius: 10px; padding: 12px; }
.tx p { margin: 0; line-height: 1.45; }
.tx .sp { font-weight: 700; margin-right: 6px; }
.tx .t { font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--muted); margin-right: 6px; }
.confirm { border: 1.5px dashed var(--navy); background: var(--paper); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--paper); border: 1px solid var(--line); }
.item .meta { color: var(--muted); font-size: 12.5px; }
.secrow { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: start; }
.toggle { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 14px; }
.err { background: var(--errbg); color: var(--err); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.empty { color: var(--muted); font-size: 13.5px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 50; max-width: 90vw; }
@media (max-width: 640px) { .secrow { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bar > div { transition: none; } }
