/* Shelf Notes — tab bar + quick capture (shelf home) and the Notes tab page.
   Shared kit for the AgentOS / SalesOS shelves (per-shelf copy, same code).
   Colors ride the shelf's own vars with literal fallbacks. Every control is
   a real tap target (>=44px) and carries a lifted fill + border, per the
   fleet findability rule — nothing flat or bare-text. */

/* ---------- Tab bar (Tools / Notes) ---------- */
.shelf-tabs { max-width: 680px; margin: 4px auto 0; display: flex; gap: 8px; }
.shelf-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 12px; border-radius: 12px;
  background: #101c33; background: var(--card, #101c33);
  border: 1px solid rgba(255,255,255,.14); border: 1px solid var(--card-border, rgba(255,255,255,.14));
  color: var(--ink, #eef2f7); font-weight: 700; font-size: 15px; text-decoration: none;
}
.shelf-tab.is-active {
  background: #f5b83d; background: var(--gold, #f5b83d);
  border-color: #f5b83d; border-color: var(--gold, #f5b83d); color: #131313;
}

/* ---------- Quick capture (shelf home) ---------- */
.quicknote {
  max-width: 680px; margin: 10px auto 0; padding: 12px 14px;
  background: #101c33; background: var(--card, #101c33);
  border: 1px solid rgba(255,255,255,.14); border: 1px solid var(--card-border, rgba(255,255,255,.14));
  border-left: 3px solid #f5b83d; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.quicknote label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: #f5b83d; color: var(--gold, #f5b83d); }
.quicknote-row { display: flex; gap: 8px; }
.quicknote-input {
  flex: 1; min-width: 0; min-height: 44px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25);
  color: var(--ink, #eef2f7); padding: 10px 12px; font-size: 16px; font-family: inherit;
}
.quicknote-save {
  min-height: 44px; padding: 10px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid #f5b83d; background: #f5b83d; background: var(--gold, #f5b83d);
  color: #131313; font-weight: 800; font-size: 15px; font-family: inherit;
}
.quicknote-done { margin-top: 8px; font-size: 13.5px; color: var(--ink-dim, #9fb0c3); }
.quicknote-done a { color: #f5b83d; color: var(--gold, #f5b83d); font-weight: 700; }

/* ---------- Notes tab page ---------- */
.notes-wrap { max-width: 680px; margin: 0 auto; }
.notes-back { display: inline-flex; align-items: center; min-height: 44px; color: #f5b83d; color: var(--gold, #f5b83d); font-weight: 700; text-decoration: none; font-size: 15px; }
.notes-wrap .shelf-tabs { margin-top: 2px; }
.notes-title { font-size: 30px; margin: 10px 0 4px; }
.notes-sub { color: var(--ink-dim, #9fb0c3); font-size: 14.5px; margin-bottom: 14px; }
.note-capture {
  padding: 14px; margin-bottom: 12px;
  background: #101c33; background: var(--card, #101c33);
  border: 1px solid rgba(255,255,255,.14); border: 1px solid var(--card-border, rgba(255,255,255,.14));
  border-left: 3px solid #f5b83d; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  display: flex; flex-direction: column; gap: 8px;
}
.note-input {
  width: 100%; min-height: 44px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25);
  color: var(--ink, #eef2f7); padding: 10px 12px; font-size: 16px; font-family: inherit;
}
textarea.note-input { resize: vertical; }
.note-savebtn {
  min-height: 48px; border-radius: 10px; cursor: pointer;
  border: 1px solid #f5b83d; background: #f5b83d; background: var(--gold, #f5b83d);
  color: #131313; font-weight: 800; font-size: 16px; font-family: inherit;
}
.note-search { margin-bottom: 10px; }
.note-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.note-chips:empty { margin-bottom: 0; }
.note-chip {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: #101c33; background: var(--card, #101c33);
  border: 1px solid rgba(255,255,255,.18); border: 1px solid var(--card-border, rgba(255,255,255,.18));
  color: var(--ink, #eef2f7); font-size: 14px; font-weight: 700; font-family: inherit;
}
.note-chip.is-on { background: #f5b83d; background: var(--gold, #f5b83d); border-color: #f5b83d; color: #131313; }
.note-list { display: flex; flex-direction: column; gap: 10px; }
.note-card {
  padding: 12px 14px; border-radius: 14px;
  background: #101c33; background: var(--card, #101c33);
  border: 1px solid rgba(255,255,255,.14); border: 1px solid var(--card-border, rgba(255,255,255,.14));
}
.note-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.note-pin {
  min-width: 44px; min-height: 44px; border-radius: 10px; cursor: pointer; font-size: 17px;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.18);
  opacity: .45; filter: grayscale(1);
}
.note-pin.is-on { opacity: 1; filter: none; border-color: #f5b83d; }
.note-when { font-size: 12.5px; color: var(--ink-dim, #9fb0c3); }
.note-text { font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.note-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.note-filechip { min-height: 44px; }
.note-btn {
  min-height: 44px; padding: 8px 16px; border-radius: 10px; cursor: pointer;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.18);
  color: var(--ink, #eef2f7); font-size: 14px; font-weight: 700; font-family: inherit;
}
.note-del { color: #f0a3a3; }
.note-del[data-armed] { background: #7a2323; color: #fff; border-color: #a33; }
.note-save { background: #f5b83d; border-color: #f5b83d; color: #131313; }
.note-edit-text, .note-edit-attach {
  width: 100%; min-height: 44px; border-radius: 10px; margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25);
  color: var(--ink, #eef2f7); padding: 10px 12px; font-size: 16px; font-family: inherit;
}
.note-empty { color: var(--ink-dim, #9fb0c3); font-size: 15px; text-align: center; padding: 22px 0; }
