/* Caboodle – Copyright (C) 2026 the Caboodle authors */
/* Remarks (shared/remarks.js): the top bar's button, and the pane – in every program. */
.rm-btn { display: inline-flex; align-items: center; gap: 5px; width: auto !important; padding: 0 9px 0 7px !important; }
.rm-btn .rm-btn-lab { font-size: 12.5px; font-weight: 500; }
.rm-btn .rm-badge { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #e8710a; color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; box-sizing: border-box; }
.rm-btn.active { background: var(--prog-soft); color: var(--prog-strong); }
.cmd-left .rm-btn .rm-btn-lab, #cmd-left .rm-btn .rm-btn-lab { display: none; }

.rm-pane { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px 12px; overflow: auto; min-height: 0; max-height: 100%; font-size: 13px; }
.rm-new { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rm-text, .rm-replybox { width: 100%; box-sizing: border-box; resize: vertical; min-height: 34px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; line-height: 1.4; }
.rm-text:focus, .rm-replybox:focus { outline: none; border-color: var(--prog); box-shadow: 0 0 0 2px var(--prog-soft); }
.rm-new-row { display: flex; align-items: center; gap: 6px; }
.rm-where { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); }
.rm-where > span:not(.material-symbols-outlined) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-where .material-symbols-outlined { font-size: 15px; color: #e8710a; flex: none; }
.rm-chip-x, .rm-tool, .rm-x { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rm-chip-x:hover, .rm-tool:hover, .rm-x:hover { background: var(--line-soft); color: var(--text); }
.rm-chip-x .material-symbols-outlined, .rm-tool .material-symbols-outlined { font-size: 16px; color: inherit; }
.rm-link { border: 0; background: none; padding: 0 2px; color: var(--prog-strong); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; white-space: nowrap; }
.rm-send { flex: none; height: 28px; padding: 0 12px; }
.rm-empty { margin: 4px 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.rm-thread { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-left: 3px solid #e8710a; border-radius: 8px; background: var(--surface); cursor: pointer; }
.rm-thread:hover { border-color: var(--line-strong); border-left-color: #e8710a; }
.rm-thread.focused { box-shadow: 0 0 0 2px rgba(232, 113, 10, 0.35); }
.rm-thread.done { border-left-color: var(--line-strong); opacity: 0.72; }
.rm-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rm-num { flex: none; min-width: 18px; height: 18px; border-radius: 9px; background: #e8710a; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rm-av { width: 20px; height: 20px; font-size: 10.5px; flex: none; }
.rm-av.agent { background: #d97757 !important; color: #fff; }
.rm-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.rm-time { color: var(--muted); font-size: 11.5px; }
.rm-tools { display: inline-flex; gap: 1px; flex: none; }
.rm-spot { align-self: flex-start; max-width: 100%; display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 5px; border: 0; border-radius: 10px; background: #fdf0e3; color: #8a4a0b; font: inherit; font-size: 11.5px; cursor: pointer; }
.rm-spot.whole { background: var(--line-soft); color: var(--text-2); }
.rm-spot span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-spot .material-symbols-outlined { font-size: 14px; }
.rm-body { white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; color: var(--text); }
.rm-donenote { font-size: 11.5px; color: var(--muted); }
.rm-reply { margin-left: 14px; padding-left: 8px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.rm-replybox { min-height: 28px; padding: 4px 8px; font-size: 12.5px; }
.rm-done-toggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; padding: 2px 0; }
.rm-done-toggle .material-symbols-outlined { font-size: 17px; }
.rm-drawer { position: fixed; top: 92px; right: 10px; bottom: 34px; width: 330px; max-width: calc(100vw - 20px); z-index: 60; display: flex; flex-direction: column; background: var(--panel, #fff); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); }
.rm-drawer[hidden] { display: none; }
.rm-drawer-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.rm-drawer-head b { flex: 1; }
.rm-drawer-head > .material-symbols-outlined { color: #e8710a; font-size: 19px; }
.rm-drawer .rm-pane { flex: 1; }
::highlight(caboodle-remarks) { background-color: rgba(232, 113, 10, 0.18); text-decoration: underline; text-decoration-color: #e8710a; text-decoration-thickness: 2px; }
.rm-line { background: rgba(232, 113, 10, 0.07); }
.rm-line-mark { background: #e8710a; width: 3px !important; margin-left: 3px; }
.rm-pin { position: absolute; z-index: 5; width: 22px; height: 22px; padding: 0; border: 2px solid #fff; border-radius: 11px 11px 11px 2px; background: #e8710a; color: #fff; font: 700 11px/18px Arial, sans-serif; text-align: center; cursor: pointer; pointer-events: auto; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); transform-origin: 50% 50%; }
.rm-pin:hover { background: #c45d06; }
.rm-area { position: absolute; border: 1.5px dashed #e8710a; box-sizing: border-box; pointer-events: none; background: rgba(232, 113, 10, 0.05); }
.rm-dot { flex: none; min-width: 17px; height: 17px; padding: 0 4px; margin: 0 2px; border: 0; border-radius: 9px; background: #e8710a; color: #fff; font: 700 10.5px/17px Arial, sans-serif; cursor: pointer; }

/* where a new remark goes, and choosing it */
.rm-where { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.rm-on { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #f3c99e; border-radius: 7px; background: #fdf3e8; color: #6b3a07; font-size: 12.5px; min-width: 0; }
.rm-on.link { cursor: pointer; }
.rm-on.link:hover { border-color: #e8710a; }
.rm-on.whole { border-color: var(--line); background: var(--line-soft); color: var(--text-2); }
.rm-on.picking { border-style: dashed; border-color: #e8710a; }
.rm-on .material-symbols-outlined { font-size: 16px; color: #e8710a; flex: none; }
.rm-on.whole .material-symbols-outlined { color: var(--muted); }
.rm-on > span:last-child { display: flex; flex-direction: column; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-on small { font-size: 10.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.rm-on-btns { display: flex; gap: 10px; padding-left: 2px; }
.rm-new-row { justify-content: flex-end; }
.rm-pickbar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 8px 10px 8px 12px; border-radius: 10px; background: #2b2118; color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); font-size: 13px; }
.rm-pickbar > .material-symbols-outlined { color: #ffb066; font-size: 20px; }
.rm-pick-text { display: flex; flex-direction: column; min-width: 0; }
.rm-pick-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-pick-text span { font-size: 12px; color: #e9d8c8; }
.rm-pickbar .btn { height: 28px; padding: 0 12px; }
.rm-pickbar .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
/* in a floating window (o.remarks.window – the MIDI editor) */
.rm-fp { height: min(620px, calc(100vh - 120px)); }
.rm-fp .fp-body { padding: 0; display: flex; flex-direction: column; }
.rm-fp .rm-pane { flex: 1; }
