.sb-root {
  min-height: calc(100vh - 96px);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
}

.sb-tabs {
  margin-bottom: 10px;
}

.sb-tab-list {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(245, 195, 0, .24);
  background: rgba(20, 20, 20, .76);
  border-radius: 8px;
}

.sb-tab-list button,
.sb-tab-list [role="tab"] {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: #f5c300;
  background: transparent;
  cursor: pointer;
}

.sb-tab-active {
  background: rgba(245, 195, 0, .2) !important;
  color: #ffffff !important;
}

.sb-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px minmax(180px, 260px) auto minmax(180px, auto);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.sb-search,
.sb-select {
  height: 38px;
  border: 1px solid rgba(245, 195, 0, .28);
  background: rgba(20, 20, 20, .72);
  color: #f8fafc;
  border-radius: 8px;
  padding: 0 11px;
}

.sb-action-button {
  height: 38px;
  border: 1px solid rgba(245, 195, 0, .28);
  background: rgba(245, 195, 0, .14);
  color: #ffffff;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sb-action-button:hover:not(:disabled),
.sb-action-button:focus-visible:not(:disabled) {
  background: rgba(245, 195, 0, .24);
  outline: none;
}

.sb-action-button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.sb-status {
  color: #f5c300;
  font-size: 12px;
  white-space: nowrap;
  justify-self: end;
}

.sb-error {
  margin-bottom: 12px;
  color: #fecaca;
  background: rgba(127, 29, 29, .35);
  border: 1px solid rgba(255, 40, 120, .35);
  padding: 10px 12px;
  border-radius: 8px;
}

.sb-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
}

.sb-filter-chip {
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, .24);
  background: rgba(20, 20, 20, .68);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}

.sb-filter-chip-active {
  border-color: rgba(245, 195, 0, .62);
  background: rgba(245, 195, 0, .18);
  color: #ffffff;
}

.sb-main {
  display: block;
  flex: 1 1 auto;
  min-height: calc(100vh - 142px);
}

.sb-graph-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 195, 0, .24);
  background: linear-gradient(180deg, rgba(20, 20, 20, .95), rgba(12, 12, 12, .96));
  border-radius: 8px;
  min-height: calc(100vh - 142px);
  height: calc(100vh - 142px);
  width: 100%;
}

.sb-graph-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.sb-graph-canvas:active {
  cursor: grabbing;
}

.sb-graph-card:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, .98), rgba(12, 12, 12, .98));
}

.sb-graph-overlay {
  position: absolute;
  z-index: 8;
  top: 12px;
  left: 12px;
  right: 12px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(245, 195, 0, .22);
  background: rgba(20, 20, 20, .74);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .24);
}

.sb-toolbar-compact {
  grid-template-columns: minmax(180px, 1fr) 132px minmax(150px, 220px) auto auto minmax(150px, auto);
  gap: 8px;
  margin-bottom: 0;
}

.sb-toolbar-compact .sb-search,
.sb-toolbar-compact .sb-select,
.sb-toolbar-compact .sb-action-button {
  height: 32px;
  border-radius: 7px;
}

.sb-filter-row-compact {
  margin: 0;
  max-height: 68px;
  overflow: auto;
}

.sb-zoom-controls {
  position: absolute;
  z-index: 9;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(245, 195, 0, .24);
  background: rgba(20, 20, 20, .78);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.sb-zoom-controls button {
  min-width: 34px;
  height: 32px;
  border: 1px solid rgba(245, 195, 0, .28);
  background: rgba(245, 195, 0, .14);
  color: #ffffff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sb-zoom-controls button:hover {
  background: rgba(245, 195, 0, .24);
}

.sb-legend {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  color: #f5c300;
  background: rgba(20, 20, 20, .78);
  border: 1px solid rgba(245, 195, 0, .24);
  border-radius: 8px;
  font-size: 12px;
}

.sb-dot-memory {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #00ddf5;
}

.sb-dashed {
  width: 28px;
  border-top: 1px dashed rgba(248, 250, 252, .72);
}

.sb-note-panel {
  overflow: auto;
  max-height: 72vh;
  border: 1px solid rgba(245, 195, 0, .22);
  background: rgba(20, 20, 20, .82);
  border-radius: 8px;
  padding: 16px;
}

.sb-modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(12, 12, 12, .46);
}

.sb-note-modal {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(245, 195, 0, .34);
  background: #141414;
  border-radius: 0;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .46);
  padding: 0;
  transform: none;
}

.sb-note-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns:
    minmax(0, var(--sb-note-split-left, 66.7%))
    8px
    minmax(0, 1fr);
  overflow: hidden;
}

.sb-note-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(245, 195, 0, .28);
  background: rgba(20, 20, 20, .82);
  color: #ffffff;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.sb-modal-close:hover {
  background: rgba(245, 195, 0, .18);
}

.sb-note-empty {
  display: grid;
  place-items: center;
  color: #f5c300;
}

.sb-note-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex: 0 0 auto;
  margin-bottom: 0;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(245, 195, 0, .24);
  background: rgba(20, 20, 20, .96);
}

.sb-note-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.sb-note-meta {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
}

.sb-source-badge {
  text-transform: uppercase;
  letter-spacing: 0;
}

.sb-markdown {
  color: #e5e7eb;
  line-height: 1.6;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.sb-note-col-left,
.sb-note-col-right {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: rgba(245, 195, 0, .5) rgba(20, 20, 20, .35);
}

.sb-note-col-left {
  padding: 12px 16px;
  background: #141414;
}

.sb-markdown pre,
.sb-markdown table,
.sb-markdown img,
.sb-markdown blockquote {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.sb-note-splitter {
  position: relative;
  width: 8px;
  min-width: 8px;
  cursor: col-resize;
  background: #222222;
  border-left: 1px solid #333333;
  border-right: 1px solid #333333;
  touch-action: none;
}

.sb-note-splitter::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 42px;
  border-left: 1px solid rgba(245, 195, 0, .55);
  border-right: 1px solid rgba(245, 195, 0, .55);
  transform: translate(-50%, -50%);
}

.sb-note-splitter:hover,
.sb-note-splitter:focus-visible {
  background: color-mix(in srgb, var(--accent-color, #00d4d4) 22%, #222222);
  outline: none;
}

.sb-note-splitter:hover::before,
.sb-note-splitter:focus-visible::before {
  border-color: var(--accent-color, #00d4d4);
}

.sb-note-col-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .03);
}

.sb-note-col-left::-webkit-scrollbar,
.sb-note-col-right::-webkit-scrollbar {
  width: 8px;
}

.sb-note-col-left::-webkit-scrollbar-track,
.sb-note-col-right::-webkit-scrollbar-track {
  background: rgba(20, 20, 20, .35);
}

.sb-note-col-left::-webkit-scrollbar-thumb,
.sb-note-col-right::-webkit-scrollbar-thumb {
  background: rgba(245, 195, 0, .48);
  border-radius: 999px;
}

.sb-note-annotations-head {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sb-note-annotations-title-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.sb-note-annotations-title {
  margin: 0;
  color: #f5c300;
  font-size: 13px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sb-history-btn {
  background: transparent;
  color: #f5c300;
  border: 1px solid #f5c30066;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
  margin-left: 8px;
}

.sb-history-btn:hover,
.sb-history-btn:focus-visible {
  background: #f5c30018;
  outline: none;
}

.sb-save-status {
  min-height: 16px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.3;
  text-align: right;
}

.sb-note-textarea {
  width: 100%;
  height: calc(100% - 2rem);
  flex: 1 1 auto;
  min-height: 280px;
  resize: none;
  border: 1px solid #333333;
  border-radius: 8px;
  background: #1e1e1e;
  color: #f8fafc;
  padding: 12px;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  outline: none;
}

.sb-note-textarea:focus {
  border-color: rgba(0, 221, 245, .62);
  box-shadow: 0 0 0 2px rgba(0, 221, 245, .12);
}

.sb-process-btn {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid #f5c300;
  background: #1a1a2e;
  color: #f5c300;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sb-process-btn:hover:not(:disabled),
.sb-process-btn:focus-visible:not(:disabled) {
  background: #f5c300;
  color: #000000;
  outline: none;
}

.sb-process-btn:disabled {
  cursor: not-allowed;
  opacity: .64;
}

.sb-process-status {
  min-height: 15px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
}

.sb-process-status-error {
  color: #ff2878;
}

.sb-flash-ok {
  color: #00ddf5;
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
}

#sb-process-result {
  flex: 0 0 auto;
  display: grid;
  gap: 9px;
  margin-top: 2px;
  padding: 11px 12px;
  border-left: 3px solid #f5c300;
  background: #0d0d1a;
  color: #e5e7eb;
}

.sb-result-item {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 7px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .025);
}

.sb-result-item strong {
  display: block;
  margin-top: 2px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
}

.sb-result-item p {
  margin: 6px 0 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.6;
}

.sb-result-frage {
  border-left: 3px solid #00ddf5;
}

.sb-result-tutorial {
  border-left: 3px solid #00ff88;
}

.sb-result-tutorial strong {
  color: #00ff88;
}

.sb-result-architektur {
  border-color: rgba(255, 40, 120, .48);
  border-left: 3px solid #ff2878;
}

.sb-result-architektur strong {
  color: #ff2878;
}

.sb-approve-btn,
.sb-revise-btn {
  margin-right: 8px;
  margin-top: 8px;
  border: 0;
  border-radius: 4px;
  padding: 6px 14px;
  font-weight: bold;
  cursor: pointer;
}

.sb-approve-btn {
  background: #5dff9c;
  color: #111111;
}

.sb-revise-btn {
  background: #ff2878;
  color: #ffffff;
}

.sb-approve-btn:disabled,
.sb-revise-btn:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.sb-revise-area {
  margin-top: 8px;
}

.sb-revise-area textarea {
  width: 100%;
  min-height: 60px;
  border: 1px solid #444444;
  border-radius: 4px;
  background: #1a1a2e;
  color: #e0e0ff;
  padding: 6px;
}

.sb-status-line {
  margin-top: 6px;
  color: #5dff9c;
  font-size: 14px;
  line-height: 1.45;
}

.sb-queue-badge {
  display: inline-block;
  margin-top: 4px;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 13px;
}

.sb-queue-status {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.sb-queue-badge-approved {
  background: #ffe066;
  color: #111111;
}

.sb-queue-status-approved {
  color: #ffe066;
}

.sb-queue-badge-in_progress {
  background: #00e5ff;
  color: #111111;
}

.sb-queue-status-in_progress {
  color: #00e5ff;
}

.sb-queue-badge-done {
  background: #5dff9c;
  color: #111111;
}

.sb-queue-status-done {
  color: #5dff9c;
}

.sb-queue-badge-rejected {
  background: #ff2878;
  color: #ffffff;
}

.sb-queue-status-rejected {
  color: #ff2878;
}

.sb-queue-status-blocked {
  color: #f5c300;
}

.sb-result-label {
  color: #f5c300;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sb-history-panel {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  background: #141428;
  border-left: 1px solid #00ddf555;
  padding: 12px;
}

.sb-back-btn {
  background: transparent;
  color: #f5c300;
  border: 1px solid #f5c30066;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
  margin-bottom: 10px;
}

.sb-back-btn:hover,
.sb-back-btn:focus-visible {
  background: #f5c30018;
  outline: none;
}

.sb-history-entry {
  border-bottom: 1px solid #ffffff11;
  padding: 8px 0;
  cursor: pointer;
}

.sb-history-entry:hover {
  background: #ffffff08;
}

.sb-history-ts {
  font-size: 10px;
  color: #888;
  margin-bottom: 4px;
}

.sb-history-eingabe {
  font-size: 12px;
  color: #e0e0e0;
  margin-bottom: 6px;
}

.sb-history-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-right: 4px;
}

.sb-badge-frage {
  background: #00ddf522;
  color: #00ddf5;
}

.sb-badge-tutorial {
  background: #f5c30022;
  color: #f5c300;
}

.sb-badge-arch {
  background: #ff287822;
  color: #ff2878;
}

.sb-history-preview p,
.sb-history-detail p,
.sb-arch-widget-item p {
  margin: 6px 0 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
}

.sb-history-detail {
  margin-top: 8px;
}

.sb-history-detail strong,
.sb-arch-widget-item strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.35;
}

.sb-arch-widget {
  background: #ff287811;
  border: 1px solid #ff287844;
  border-radius: 6px;
  padding: 8px;
  margin-top: 10px;
  font-size: 12px;
}

.sb-arch-widget-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: #ff78a8;
  padding: 0;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.sb-arch-widget-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.sb-arch-widget-item {
  border-top: 1px solid #ffffff11;
  padding-top: 8px;
}

.sb-markdown h1,
.sb-markdown h2,
.sb-markdown h3 {
  color: #f5c300;
  margin: 18px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.sb-markdown p {
  margin: 0 0 12px;
}

.sb-markdown code {
  color: #ffffff;
  background: rgba(245, 195, 0, .12);
  border: 1px solid rgba(245, 195, 0, .18);
  border-radius: 5px;
  padding: 1px 4px;
}

.sb-link-section,
.sb-link-grid {
  margin-top: 16px;
}

.sb-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sb-link-section h3,
.sb-link-grid h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #f5c300;
}

.sb-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sb-chip {
  border: 1px solid rgba(245, 195, 0, .25);
  background: rgba(245, 195, 0, .12);
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.sb-chip:hover {
  background: rgba(245, 195, 0, .22);
}

.sb-tutorial {
  min-height: 68vh;
}

.sb-tutorial-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sb-tutorial-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: #f5c300;
}

.sb-tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sb-panel {
  border: 1px solid rgba(245, 195, 0, .22);
  background: rgba(20, 20, 20, .82);
  border-radius: 8px;
  padding: 14px;
  min-height: 180px;
}

.sb-panel h3 {
  margin: 0 0 10px;
  color: #f5c300;
  font-size: 14px;
}

.sb-note-count {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.sb-note-list {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(245, 195, 0, .5) rgba(20, 20, 20, .35);
}

.sb-note-list::-webkit-scrollbar {
  width: 8px;
}

.sb-note-list::-webkit-scrollbar-track {
  background: rgba(20, 20, 20, .35);
  border-radius: 999px;
}

.sb-note-list::-webkit-scrollbar-thumb {
  background: rgba(245, 195, 0, .48);
  border-radius: 999px;
}

.sb-note-row {
  display: block;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(20, 20, 20, .54);
  color: #f8fafc;
  border-radius: 7px;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.sb-note-row + .sb-note-row {
  margin-top: 7px;
}

.sb-note-row:hover,
.sb-note-row:focus-visible {
  border-color: rgba(245, 195, 0, .48);
  background: rgba(245, 195, 0, .14);
  outline: none;
}

.sb-note-row-title {
  display: block;
  overflow: hidden;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-note-row-meta {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-panel ul {
  margin: 0;
  padding-left: 18px;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.55;
}

.sb-panel li + li {
  margin-top: 6px;
}

.sb-panel span {
  color: #cbd5e1;
}

@media (max-width: 980px) {
  .sb-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .sb-status {
    justify-self: start;
  }

  .sb-main {
    min-height: calc(100vh - 128px);
  }

  .sb-graph-card {
    min-height: calc(100vh - 128px);
    height: calc(100vh - 128px);
  }

  .sb-graph-overlay {
    left: 8px;
    right: 8px;
    top: 8px;
  }

  .sb-toolbar-compact {
    grid-template-columns: 1fr 1fr;
  }

  .sb-filter-row-compact {
    max-height: 56px;
  }

  .sb-modal-backdrop {
    padding: 0;
    align-items: stretch;
  }

  .sb-note-modal {
    max-height: none;
  }

  .sb-note-modal-body {
    grid-template-columns: 1fr;
  }

  .sb-note-col-left {
    border-bottom: 1px solid #333333;
  }

  .sb-note-splitter {
    display: none;
  }

  .sb-note-col-right {
    min-height: 42vh;
  }

  .sb-tutorial-grid {
    grid-template-columns: 1fr;
  }
}

/* Kategorie-Fenster (Klick auf Nummern-Kategorie 00-90 oeffnet dieses Panel) */
.sb-cat-panel {
  width: min(560px, calc(100vw - 28px));
  height: auto;
  max-width: 560px;
  max-height: min(78vh, 820px);
  border-radius: 8px;
  padding: 18px;
}
.sb-cat-panel .sb-note-head {
  padding: 0;
  margin-bottom: 12px;
  border-bottom: 0;
  background: transparent;
}
.sb-cat-title { margin: 0; color: #f59e0b; font-size: 16px; font-weight: 800; }
.sb-cat-list { margin-top: 12px; max-height: 60vh; overflow: auto; }

/* ── Last-used / Recent-Activity Tab ─────────────────────────────── */
.sb-recent {
  padding: 4px 2px 18px;
}

.sb-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(245, 195, 0, .5) rgba(20, 20, 20, .35);
}

.sb-recent-list::-webkit-scrollbar { width: 8px; }
.sb-recent-list::-webkit-scrollbar-track { background: rgba(20, 20, 20, .35); border-radius: 999px; }
.sb-recent-list::-webkit-scrollbar-thumb { background: rgba(245, 195, 0, .48); border-radius: 999px; }

.sb-recent-row {
  display: block;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .18);
  border-left: 3px solid rgba(148, 163, 184, .35);
  background: rgba(20, 20, 20, .6);
  color: #f8fafc;
  border-radius: 7px;
  padding: 10px 12px;
  text-align: left;
}

.sb-recent-row-clickable { cursor: pointer; }

.sb-recent-row-clickable:hover,
.sb-recent-row-clickable:focus-visible {
  border-color: rgba(245, 195, 0, .48);
  background: rgba(245, 195, 0, .12);
  outline: none;
}

.sb-recent-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-recent-row-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-recent-row-ts {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.sb-recent-row-detail {
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
}

.sb-recent-row-meta {
  margin-top: 4px;
  overflow: hidden;
  color: #7c8699;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-recent-badge {
  flex: 0 0 auto;
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
  background: rgba(148, 163, 184, .18);
  color: #cbd5e1;
}

/* Anmerkung = cyan, Freigabe = pink, Tutorial/Notiz = gelb */
.sb-recent-badge-annotation { background: #00ddf522; color: #00ddf5; }
.sb-recent-badge-approval { background: #ff287822; color: #ff2878; }
.sb-recent-badge-file-vault { background: #f5c30022; color: #f5c300; }
.sb-recent-badge-file-memory { background: #a78bfa22; color: #a78bfa; }
.sb-recent-badge-file-repo { background: #94a3b822; color: #cbd5e1; }
.sb-recent-badge-skill { background: #34d39922; color: #34d399; }
.sb-recent-badge-hook { background: #fb923c22; color: #fb923c; }

/* farbiger Akzent-Balken links je nach Art */
.sb-recent-row:has(.sb-recent-badge-annotation) { border-left-color: #00ddf5; }
.sb-recent-row:has(.sb-recent-badge-approval) { border-left-color: #ff2878; }
.sb-recent-row:has(.sb-recent-badge-file-vault) { border-left-color: #f5c300; }
.sb-recent-row:has(.sb-recent-badge-file-memory) { border-left-color: #a78bfa; }
.sb-recent-row:has(.sb-recent-badge-skill) { border-left-color: #34d399; }
.sb-recent-row:has(.sb-recent-badge-hook) { border-left-color: #fb923c; }
