/* solveza-delight.css — C-O300–O301 skeletons + micro-interactions */

@keyframes sv-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.sv-skel {
  background: linear-gradient(90deg, #1a1d23 0%, #2a2e36 50%, #1a1d23 100%);
  background-size: 200% 100%;
  animation: sv-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

.nd-skel-cluster {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 8px;
}
.nd-skel-line { height: 12px; }
.nd-skel-line.wide { width: 85%; }
.nd-skel-line.mid { width: 55%; }
.nd-skel-line.short { width: 30%; }
.nd-skel-brief .nd-skel-block { height: 14px; margin-bottom: 10px; }
.nd-skel-brief .nd-skel-block.tall { height: 80px; }
.nd-skel-lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.nd-skel-lib-card { height: 120px; border-radius: 10px; }

.nd-cta, .adm-key-cta, .adm-key-btn, .cap-btn, .dr-btn, .set-btn, .nd-story, .adm-tab {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.nd-cta:hover, .adm-key-cta:hover, .cap-btn:hover, .dr-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 168, 83, 0.2);
}
.nd-cta:active, .adm-key-cta:active, .cap-btn:active, .dr-btn:active {
  transform: translateY(0);
}
.nd-cta:focus-visible, .adm-key-cta:focus-visible, .adm-key-btn:focus-visible,
.nd-story:focus-visible, .adm-tab:focus-visible, .cap-btn:focus-visible {
  outline: 2px solid #d4a853;
  outline-offset: 2px;
}

.sv-toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, 92vw);
  pointer-events: none;
}
.sv-toast {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  background: #1a1d23;
  border: 1px solid rgba(255,255,255,0.12);
  color: #e4e6ea;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  animation: sv-toast-in 0.25s ease;
}
.sv-toast.success { border-color: rgba(125, 206, 160, 0.5); }
.sv-toast.info { border-color: rgba(212, 168, 83, 0.4); }
.sv-toast.warn { border-color: rgba(232, 168, 83, 0.5); }
.sv-toast.error { border-color: rgba(232, 128, 128, 0.55); }
.sv-toast.error button {
  margin-left: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #e4e6ea;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  min-height: 32px;
}
@keyframes sv-toast-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.sv-shortcuts-overlay {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sv-shortcuts-card {
  background: #14161c;
  border: 1px solid rgba(212,168,83,0.35);
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  padding: 20px;
}
.sv-shortcuts-card h2 { margin: 0 0 12px; font-size: 18px; }
.sv-shortcuts-group { margin-bottom: 16px; }
.sv-shortcuts-group h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #8a8f99; margin: 0 0 8px; }
.sv-shortcuts-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; }
.sv-shortcuts-row kbd {
  background: #0a0b0e;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 12px;
  color: #d4a853;
}

.sv-recent-footer {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 90;
  max-width: 280px;
  padding: 10px 12px;
  background: rgba(20, 22, 28, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 11px;
  color: #8a8f99;
}
.sv-recent-footer a { color: #d4a853; text-decoration: none; display: block; margin-top: 4px; }

.adm-daily-brief {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: rgba(212,168,83,0.06);
  border: 1px solid rgba(212,168,83,0.25);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.adm-daily-brief p { margin: 0; font-size: 14px; line-height: 1.5; color: #e4e6ea; }
.adm-todays-bookmark {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 83, 0.25);
  background: linear-gradient(135deg, rgba(212,168,83,0.08), transparent);
}
.adm-todays-bookmark-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4a853;
}
.adm-todays-bookmark-title { margin: 6px 0 4px; font-size: 15px; font-weight: 600; color: #f0f1f3; }
.adm-todays-bookmark-meta { margin: 0 0 10px; font-size: 12px; color: #9aa0ad; }
.adm-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 600;
}

.sv-quick-add-overlay {
  position: fixed;
  inset: 0;
  z-index: 440;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.sv-quick-add-card {
  background: #1a1d23;
  border-radius: 12px;
  padding: 16px;
  width: min(400px, 92vw);
  border: 1px solid rgba(212,168,83,0.3);
}
.sv-quick-add-card button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 6px 0;
  padding: 12px 14px;
  min-height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #e4e6ea;
  cursor: pointer;
}
.sv-quick-add-card button:hover { border-color: #d4a853; }

@media (max-width: 480px) {
  .sv-recent-footer { max-width: calc(100vw - 24px); }
}

/* C-S427 audio player */
.sv-audio-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 480;
  background: #1a1d23; border-top: 1px solid rgba(212,168,83,0.35);
  padding: 10px 16px; display: flex; align-items: center;
}
.sv-audio-inner { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 720px; margin: 0 auto; }
.sv-audio-title { font-size: 14px; font-weight: 600; color: #f0f1f3; display: block; }
.sv-audio-sub { font-size: 12px; color: #9aa0ad; }
.sv-audio-btn { background: #d4a853; color: #1a1d23; border: 0; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; }
.sv-audio-btn.ghost { background: transparent; color: #9aa0ad; border-radius: 8px; width: auto; }

/* C-S422 publish queue */
.pq-panel h2 { margin: 0 0 12px; font-size: 18px; }
.pq-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pq-table th, .pq-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pq-status.pq-published { color: #7dcea0; }
.pq-status.pq-failed { color: #e88080; }
.pq-status.pq-publishing { color: #d4a853; }
.pq-empty p { color: #9aa0ad; font-size: 14px; line-height: 1.5; }
.pq-empty-sub { font-size: 13px; opacity: 0.85; }
.pq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pq-head h2 { margin: 0; font-size: 18px; }
.pq-refresh, .pq-retry { font-size: 12px; padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12); background: transparent; color: #d4a853; cursor: pointer; }
.pq-err { font-size: 11px; color: #e88080; max-width: 140px; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: help; }
.pq-spin { display: inline-block; animation: pq-spin 1s linear infinite; }
@keyframes pq-spin { to { transform: rotate(360deg); } }
.pq-loading .pq-spinner { color: #9aa0ad; font-size: 14px; }
