/* shelf.css — the Personal Shelf: a student's own collection of notes & links.
   Each item has a "Let Astra see it" opt-in (default off). Reuses the app's
   panel/btn tokens; this only adds the shelf-specific bits. */

.shelf-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.shelf-tab {
  padding: 8px 16px; border-radius: 20px; font: inherit; font-size: 13px; font-weight: 600;
  background: var(--panel2); border: 1px solid var(--line); color: var(--muted);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.shelf-tab:hover { color: var(--text); }
.shelf-tab.on { background: rgba(124,92,255,.16); border-color: rgba(124,92,255,.4); color: var(--text); }

.shelf-inp {
  width: 100%; box-sizing: border-box; margin-bottom: 10px;
  background: var(--ink2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 14px;
  outline: none; resize: vertical; transition: border-color .15s;
}
.shelf-inp:focus { border-color: rgba(124,92,255,.5); }

.shelf-list { display: flex; flex-direction: column; gap: 12px; }
.shelf-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  transition: border-color .15s;
}
.shelf-item.seen-by-astra { border-color: rgba(124,92,255,.45); box-shadow: 0 0 0 1px rgba(124,92,255,.15); }
.shelf-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.shelf-kind { font-size: 16px; flex: 0 0 auto; }
.shelf-title { flex: 1; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: -.2px; word-break: break-word; }
.shelf-del {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
  background: var(--panel2); border: 1px solid var(--line); color: var(--faint);
  cursor: pointer; display: grid; place-items: center; transition: color .15s, border-color .15s;
}
.shelf-del:hover { color: var(--rose); border-color: var(--rose); }
.shelf-body { color: var(--muted); font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; max-height: 140px; overflow: hidden; position: relative; }
.shelf-body.link a { color: var(--cyan); text-decoration: none; word-break: break-all; }
.shelf-body.link a:hover { text-decoration: underline; }

.shelf-astra {
  display: flex; align-items: center; gap: 9px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line); cursor: pointer; user-select: none;
  font-size: 13px; color: var(--muted);
}
.shelf-astra input { width: 16px; height: 16px; accent-color: var(--violet); cursor: pointer; flex: 0 0 auto; }
.shelf-astra .sa-on { color: var(--violet); font-weight: 600; }

.shelf-empty {
  text-align: center; color: var(--muted); font-size: 14px; padding: 34px 20px;
  border: 1px dashed var(--line); border-radius: 16px;
}
.shelf-empty .se-emo { font-size: 30px; margin-bottom: 10px; }

.shelf-count { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--faint); }
