/* ============================================================
   LinkHub — Obsidian / Smoked Glass design system
   (visual language ported from Simple_Dashboard)
   ============================================================ */

:root {
  /* ---- base (kanban-spec dark) ---- */
  --bg-body: #0A0A0E;
  --glass-surface: linear-gradient(150deg, rgba(16, 16, 16, 0.78) 0%, rgba(6, 6, 6, 0.92) 100%);
  --panel: #121218;          /* kanban column / panel bg */
  --card: #14141A;           /* space card bg */
  --input-bg: #16161C;       /* capsule / input bg */
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-light: rgba(255, 255, 255, 0.10);
  --border-glass-top: rgba(255, 255, 255, 0.10);
  --text-primary: #F2F2F5;
  --text-secondary: #8B8B96;
  --text-muted: #6F6F7A;
  --label-upper: #7A7A85;    /* uppercase labels */
  --accent-cyan: #00f2fe;
  --accent-purple: #8a2be2;
  --accent-grad: linear-gradient(135deg, #00f2fe 0%, #8a2be2 100%);
  --danger: #ff4d5e;
  --alive: #2ee6a6;
  --dead: #ff7a59;
  --unknown: #ffb547;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --radius-xl: 24px;
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --shadow-deep: 0 16px 36px -8px rgba(0, 0, 0, 0.95);
  --shadow-focus: 0 0 0 3px rgba(0, 242, 254, 0.18), 0 0 22px rgba(0, 242, 254, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ---- Studio noise + ambient glows (atmosphere) ---- */
.studio-noise {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ambient-glow-container { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient-glow { position: absolute; border-radius: 50%; filter: blur(120px); }
.ambient-glow--left {
  width: 900px; height: 700px; left: 0; bottom: 0;
  background: radial-gradient(ellipse 900px 700px at 10% 100%, rgba(217,138,46,0.10) 0%, transparent 60%);
  opacity: 0.9; animation: glow-pulse-left 16s ease-in-out infinite alternate; will-change: transform, opacity;
}
.ambient-glow--center {
  width: 800px; height: 600px; left: 0; top: 40%;
  background: radial-gradient(ellipse 800px 600px at 0% 60%, rgba(138,43,226,0.08) 0%, transparent 55%);
  opacity: 0.8; filter: blur(120px); animation: glow-pulse-center 20s ease-in-out infinite alternate;
}
@keyframes glow-pulse-left { to { transform: translate3d(40px, -30px, 0) scale(1.08); } }
@keyframes glow-pulse-center { to { transform: translate3d(-30px, 20px, 0) scale(1.05); } }

/* ---- Shell ---- */
.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
  isolation: isolate;
}

/* ---- Sidebar (shelves) — space cards, kanban-spec style ---- */
.shelves-sidebar {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-right: none;
  border-top: none;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 22px 12px;
  gap: 14px;
  z-index: 1;
  box-shadow: none;
  min-width: 232px;
}
.sidebar__brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px; }
.brand__logo {
  font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(0,242,254,.14), rgba(138,43,226,.14));
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0 12px rgba(0,242,254,0.25);
}
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: 0.3px;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sidebar__section-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
  color: var(--label-upper); padding: 0 10px; margin-top: 2px;
}

.shelves-list { list-style: none; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; flex: 1; }
.shelf-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s var(--spring), border-color .2s var(--spring), transform .14s var(--spring);
  position: relative; overflow: hidden;
}
.shelf-pill:hover { background: #181820; }
.shelf-pill.active {
  background: linear-gradient(150deg, rgba(0,242,254,.03), rgba(138,43,226,.03));
  border-color: transparent;
  box-shadow: none;
}
.shelf-pill__icon { font-size: 26px; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.shelf-pill__icon svg { width: 26px; height: 26px; display: block; }
.shelf-pill__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.shelf-pill__name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary); }
.shelf-pill.active .shelf-pill__name { color: var(--text-primary); font-weight: 700; }
.shelf-pill__count { font-size: 11.5px; color: var(--text-muted); }
.shelf-pill__menu { opacity: 0; transition: opacity .15s; }
.shelf-pill:hover .shelf-pill__menu, .shelf-pill.active .shelf-pill__menu { opacity: 1; }

.sidebar__footer { border-top: none; padding-top: 6px; display: flex; flex-direction: column; gap: 9px; }
.sidebar__footer .btn--ghost { justify-content: flex-start; background: var(--card); color: var(--text-secondary); border: 1px solid transparent; }
.sidebar__footer .btn--ghost:hover { background: #181820; color: var(--text-primary); }

/* ---- Main ---- */
.main { display: flex; flex-direction: column; min-width: 0; z-index: 1; }

.command-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 26px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: none;
  border-bottom: none;
}
.shelf-title { font-size: 19px; font-weight: 800; white-space: nowrap; min-width: 0;
  background: linear-gradient(120deg, #fff, #c9cdda); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search-wrap { position: relative; flex: 1; max-width: 540px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 17px; height: 17px; }
.search-input {
  width: 100%; padding: 11px 38px 11px 40px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  color: var(--text-primary); font-size: 14px; outline: none;
  transition: border-color .2s var(--spring), box-shadow .2s var(--spring);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: rgba(0,242,254,.5); box-shadow: inset 0 2px 6px rgba(0,0,0,.6), var(--shadow-focus); }
.search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer; display: flex; }
.command-bar__actions { display: flex; gap: 9px; }

/* ---- Buttons ---- */
.btn--primary, .btn--ghost, .btn--danger, .btn--google, .btn--sm {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  font-family: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
  border-radius: var(--radius-pill); padding: 10px 18px; border: 1px solid transparent;
  transition: transform .14s var(--spring), filter .22s, background .22s, box-shadow .22s; line-height: 1;
  white-space: nowrap;
}
.btn--primary {
  background: #F2F2F2; color: #111114;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 0 4px 14px -4px rgba(0,0,0,.5);
  font-weight: 700;
}
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 0 8px 22px -6px rgba(0,0,0,.6); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-color: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn--ghost:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.07); }
.btn--danger { background: rgba(255,77,109,.14); border-color: rgba(255,77,109,.4); color: var(--danger); }
.btn--danger:hover { background: rgba(255,77,109,.24); box-shadow: 0 0 18px -4px rgba(255,77,109,.5); }
.btn--google { background: rgba(255,255,255,.05); border-color: var(--border-glass); color: var(--text-primary); width: 100%; }
.btn--sm { padding: 8px 13px; font-size: 13px; }
.icon-btn {
  background: rgba(255,255,255,.04); border: 1px solid var(--border-glass); color: var(--text-muted);
  cursor: pointer; display: flex; padding: 6px; border-radius: var(--radius-sm);
  transition: color .15s, background .15s, border-color .15s, transform .12s var(--spring);
}
.icon-btn:hover { color: var(--text-primary); background: rgba(255,255,255,.1); border-color: var(--border-glass-light); transform: translateY(-1px); }
.btn--primary svg, .btn--ghost svg, .icon-btn svg { width: 16px; height: 16px; }

/* ---- Links area ---- */
.links-area { flex: 1; overflow-y: auto; padding: 24px 26px 24px 30px; }
.links-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.links-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 60%; color: var(--text-muted); }
.links-empty svg { width: 52px; height: 52px; opacity: .5; }
.links-empty p { font-size: 15px; }

/* ---- Link card (smoked glass + neon shimmer contour) ---- */
.link-card {
  position: relative; display: flex; flex-direction: column; gap: 11px;
  padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--glass-surface);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-top-color: var(--border-glass-top);
  box-shadow: inset 0 1px 1px 0 rgba(255,255,255,.10), var(--shadow-deep);
  transition: transform .16s var(--spring), border-color .2s, box-shadow .2s;
  overflow: hidden;
}
.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glass-light);
  box-shadow: inset 0 1px 1px 0 rgba(255,255,255,.14), 0 22px 46px -10px rgba(0,0,0,.95);
}
.link-card.dragging { opacity: .45; }

/* neon running shimmer contour (ported from Simple_Dashboard .card__shimmer) */
.card__shimmer {
  position: absolute !important; inset: 0 !important; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from calc(var(--shimmer-angle, 0deg)),
    rgba(255,255,255,0) 0deg, var(--shimmer-color, rgba(0,242,254,.55)) 40deg,
    rgba(255,255,255,0) 120deg, rgba(255,255,255,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .25s var(--spring);
}
.link-card:hover .card__shimmer,
.link-card.shimmer-on .card__shimmer { opacity: 1; }
.card__shimmer-surface {
  position: absolute; inset: -150%; width: 400%; height: 400%;
  background: conic-gradient(from 0deg,
    rgba(255,255,255,0) 0deg, var(--shimmer-color, rgba(0,242,254,.5)) 40deg,
    rgba(255,255,255,0) 130deg, rgba(255,255,255,0) 360deg);
  animation: card-shimmer-spin 4s linear infinite; will-change: transform;
}
@keyframes card-shimmer-spin { to { transform: rotate(360deg); } }

/* shimmer color by link status (maps to Simple_Dashboard priority palettes) */
.link-card[data-status="alive"]  { --shimmer-color: rgba(46,230,166,.55); }
.link-card[data-status="dead"]   { --shimmer-color: rgba(255,122,89,.6); }
.link-card[data-status="unknown"]{ --shimmer-color: rgba(255,181,71,.5); }

.link-card__top { display: flex; align-items: flex-start; gap: 11px; position: relative; z-index: 3; }
.link-card__favicon { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; object-fit: contain; background: rgba(255,255,255,.06); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.link-card__title { font-weight: 650; font-size: 14.5px; line-height: 1.32; word-break: break-word; flex: 1; }
.link-card__url { font-size: 12px; color: var(--text-muted); word-break: break-all; }
.link-card__notes { font-size: 12.5px; color: var(--text-secondary); font-style: italic; position: relative; z-index: 3; }
.link-card__badges { display: flex; gap: 7px; flex-wrap: wrap; position: relative; z-index: 3; }
.badge { font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 3px 9px; border-radius: var(--radius-pill); text-transform: uppercase; }
.badge--type-site { background: rgba(0,242,254,.14); color: var(--accent-cyan); }
.badge--type-page { background: rgba(138,43,226,.18); color: #c08bff; }
.badge--type-video { background: rgba(255,77,109,.16); color: #ff8aa0; }
.badge--alive { background: rgba(46,230,166,.15); color: var(--alive); box-shadow: inset 0 0 0 1px rgba(46,230,166,.3); }
.badge--dead { background: rgba(255,122,89,.16); color: var(--dead); box-shadow: inset 0 0 0 1px rgba(255,122,89,.3); }
.badge--unknown { background: rgba(255,181,71,.15); color: var(--unknown); box-shadow: inset 0 0 0 1px rgba(255,181,71,.3); }
.link-card__date { font-size: 11px; color: var(--text-muted); position: relative; z-index: 3; }
.link-card__actions { display: flex; gap: 5px; margin-top: 3px; opacity: 0; transition: opacity .18s var(--spring); position: relative; z-index: 3; }
.link-card:hover .link-card__actions { opacity: 1; }
.link-card__actions .icon-btn { color: var(--text-secondary); }
.link-card__transcribe { color: var(--accent-cyan) !important; }
.link-card__transcribe.is-busy { opacity: .6; pointer-events: none; animation: tr-pulse 1s ease-in-out infinite; }
@keyframes tr-pulse { 0%,100% { opacity: .4 } 50% { opacity: .85 } }
.link-transcript-box { margin-top: 4px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--panel); border: 1px solid var(--border-glass); }
.link-transcript-box__head { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--label-upper); margin-bottom: 6px; }
.link-transcript-box__text { font-size: 13px; line-height: 1.5; color: var(--text-secondary); white-space: pre-wrap; max-height: 200px; overflow-y: auto; }

/* ---- User profile ---- */
.user-profile { width: 100%; }
.user-avatar-btn { display: flex; align-items: center; gap: 8px; background: none; border: none; color: var(--text-primary); cursor: pointer; width: 100%; padding: 6px; border-radius: var(--radius-md); }
.user-avatar-btn:hover { background: var(--glass-surface-2); }
.user-avatar-btn img { width: 28px; height: 28px; border-radius: 50%; }
.user-dropdown { margin-top: 6px; padding: 10px; background: var(--glass-surface); border: 1px solid var(--border-glass); border-radius: var(--radius-md); }
.user-dropdown__email { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; word-break: break-all; }
.user-dropdown__logout-btn { display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--danger); cursor: pointer; font-size: 13px; }

/* ---- Popover (shelf context menu) ---- */
.popover {
  position: fixed; z-index: 540; min-width: 188px;
  display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: rgba(18,18,24,0.82);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 14px 36px -8px rgba(0,0,0,.7);
  animation: pop-in .16s var(--spring);
}
@keyframes pop-in { from { transform: translateY(-6px) scale(.97); opacity: 0 } to { transform: none; opacity: 1 } }
.popover__item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border: none; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--text-primary); font-size: 13.5px; font-family: inherit;
  text-align: left; transition: background .14s, color .14s;
}
.popover__item svg { width: 16px; height: 16px; opacity: .85; }
.popover__item:hover { background: rgba(255,255,255,0.08); }
.popover__item--danger { color: var(--danger); }
.popover__item--danger:hover { background: rgba(255,77,109,.16); }

/* ---- Modals ---- */
.modal-overlay { position: fixed; inset: 0; z-index: 550; display: flex; align-items: center; justify-content: center; background: rgba(4,4,8,.6); backdrop-filter: blur(6px); animation: fade .2s var(--spring); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal { width: min(520px, 92vw); background: var(--glass-surface); border: 1px solid var(--border-glass-light); border-top-color: var(--border-glass-top); border-radius: var(--radius-xl); backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%); box-shadow: inset 0 1px 1px 0 rgba(255,255,255,.12), 0 30px 80px rgba(0,0,0,.6); animation: pop .24s var(--spring); }
.modal--sm { width: min(400px, 92vw); }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0 } to { transform: none; opacity: 1 } }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border-glass); }
.modal__head h2 { font-size: 17px; font-weight: 750; }
.modal__close { background: none; border: none; color: var(--text-muted); cursor: pointer; display: flex; padding: 4px; border-radius: var(--radius-sm); transition: color .15s, background .15s; }
.modal__close:hover { color: var(--text-primary); background: rgba(255,255,255,.08); }
.modal__body { padding: 22px; display: flex; flex-direction: column; gap: 15px; }
.modal__body label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--text-secondary); }
.modal__body input, .modal__body select, .modal__body textarea {
  padding: 11px 13px; border-radius: var(--radius-md); background: rgba(0,0,0,.4);
  border: 1px solid var(--border-glass); color: var(--text-primary); font-family: inherit; font-size: 14px; outline: none;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.6); transition: border-color .2s, box-shadow .2s;
}
.modal__body input:focus, .modal__body select:focus, .modal__body textarea:focus { border-color: rgba(0,242,254,.5); box-shadow: inset 0 2px 6px rgba(0,0,0,.6), var(--shadow-focus); }
.modal__body textarea { resize: vertical; font-family: ui-monospace, monospace; font-size: 12px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 11px; margin-top: 4px; }
.muted { color: var(--text-muted); font-size: 13px; }

/* ---- Toasts ---- */
.toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 600; display: flex; flex-direction: column; gap: 9px; align-items: center; }

/* ---- Stats strip — floating center pill (no full-width divider) ---- */
.stats-strip {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 480;
  display: flex; align-items: center; gap: 18px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: rgba(10,10,14,0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.6);
  font-size: 12.5px; color: var(--text-secondary); white-space: nowrap;
}
.stats-strip .stat { display: inline-flex; align-items: center; gap: 6px; }
.stats-strip .stat b { color: var(--text-primary); font-weight: 700; }
.stats-strip .stat--alive b { color: var(--alive); }
.stats-strip .stat--dead b { color: var(--dead); }
.stats-strip svg { width: 14px; height: 14px; opacity: .8; }
.toast-pill { padding: 11px 20px; border-radius: var(--radius-pill); background: var(--glass-surface); border: 1px solid var(--border-glass-light); border-top-color: var(--border-glass-top); backdrop-filter: blur(22px) saturate(180%); font-size: 13.5px; box-shadow: inset 0 1px 1px rgba(255,255,255,.1), 0 12px 30px rgba(0,0,0,.5); animation: toast-in .26s var(--spring); }
.toast-pill--info { color: var(--text-primary); }
.toast-pill--success { color: var(--alive); border-color: rgba(46,230,166,.4); box-shadow: inset 0 1px 1px rgba(255,255,255,.1), 0 0 22px -6px rgba(46,230,166,.5); }
.toast-pill--error { color: var(--dead); border-color: rgba(255,77,109,.4); box-shadow: inset 0 1px 1px rgba(255,255,255,.1), 0 0 22px -6px rgba(255,77,109,.5); }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0 } to { transform: none; opacity: 1 } }

.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatches .swatch {
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer; padding: 0;
  border: 2px solid transparent; box-shadow: inset 0 1px 1px rgba(255,255,255,.25), 0 2px 6px rgba(0,0,0,.4);
  transition: transform .12s var(--spring), border-color .15s;
}
.color-swatches .swatch:hover { transform: translateY(-1px); }
.color-swatches .swatch.active { border-color: #fff; transform: scale(1.08); }

/* ---- Links list view ---- */
.links-grid.list-view {
  grid-template-columns: 1fr;
  gap: 10px;
}
.links-grid.list-view .link-card {
  flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px;
}
.links-grid.list-view .link-card__top { flex: 0 0 auto; align-items: center; gap: 12px; width: 46%; min-width: 220px; }
.links-grid.list-view .link-card__notes,
.links-grid.list-view .link-card__date { display: none; }
.links-grid.list-view .link-card__badges { flex: 1; }
.links-grid.list-view .link-card__actions { margin-top: 0; opacity: 1; }
.links-grid.list-view .card__shimmer { display: none; }

/* ---- Neon drag placeholder (insertion line) ---- */
.link-card-placeholder {
  height: 3px; border-radius: var(--radius-pill); margin: 4px 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
  box-shadow: 0 0 12px rgba(0,242,254,.6), 0 0 22px rgba(138,43,226,.4);
  animation: ph-pulse 1.1s ease-in-out infinite;
}
@keyframes ph-pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

.hidden { display: none !important; }

@media (max-width: 720px) {
  .app-shell { grid-template-columns: 1fr; }
  .shelves-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .25s var(--spring); z-index: 500; }
  .shelves-sidebar.open { transform: none; }
  .command-bar { flex-wrap: wrap; }
  .search-wrap { order: 3; max-width: none; flex-basis: 100%; }
}
