:root {
  /* === DARK THEME (default) === */
  --primary: #7b8cff;
  --primary-hover: #6677ff;

  --bg-body: #0b1220;
  --bg-card: #0f172a;
  --bg-input: #0b1630;

  --text-main: #e5e7eb;
  --text-muted: #94a3b8;

  --border: #22304a;
  --border-focus: #7b8cff;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);

  --radius: 12px;
  --radius-sm: 8px;

  --danger: #ef4444;
  --success: #10b981;

  --font-family: 'Inter', system-ui, -apple-system, sans-serif;

  /* extra helpers (nie wpływa na funkcjonalność) */
  --bg-soft: rgba(255,255,255,0.04);
  --bg-soft-2: rgba(255,255,255,0.06);
  --bg-soft-3: rgba(255,255,255,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 0.5rem; font-weight: 600; color: var(--text-main); }
button, input, select, textarea { font-family: inherit; font-size: 100%; }

.wrap { max-width: 1600px; width: 96vw; margin: 0 auto; padding: 0 16px; }

.topbar {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
}
.topbar .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-row { display: flex; align-items: center; gap: 12px; }

/* ZWIĘKSZONE LOGO */
.logo { height: 44px; width: auto; display: block; }
.logo.xl { height: 80px; }
.home-logo { cursor: pointer; }

.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.tab {
  background: transparent;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab:hover { color: var(--text-main); }
.tab.active {
  background: rgba(255,255,255,0.06);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  height: 36px;
  white-space: nowrap;
}
.btn:hover { border-color: rgba(123, 140, 255, 0.55); transform: translateY(-1px); background: rgba(255,255,255,0.06); }
.btn:active { transform: translateY(0); }

.btn.primary, .btn.cta {
  background: var(--primary);
  border-color: var(--primary);
  color: #0b1220;
}
.btn.primary:hover, .btn.cta:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 10px 30px rgba(123, 140, 255, 0.25);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--text-muted);
}
.btn.ghost:hover { background: rgba(255,255,255,0.06); color: var(--text-main); }
.btn.small { padding: 0 12px; font-size: 12px; height: 32px; }
.btn.block { width: 100%; }
.btn.danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}
.btn.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.icon-btn:hover { background: rgba(255,255,255,0.06); color: var(--primary); }
.icon-btn.white {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.sort-select {
  width: auto;
  height: 32px;
  padding: 0 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 12px;
}
.sort-select:focus {
  background: var(--bg-input);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(123, 140, 255, 0.18);
}
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 14px; height: 14px; }
.meta-inline { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.meta-inline span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 16px;
}
.card-h {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.02);
  height: 60px;
}
.card-h .row { display: flex; align-items: center; gap: 8px; height: 100%; }
.card-c { padding: 20px; }
.card.compact .card-c { padding: 16px; }
#playerTitle { max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: all 0.2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(123, 140, 255, 0.18);
}
input:disabled { background: rgba(255,255,255,0.03); color: rgba(229,231,235,0.45); cursor: not-allowed; }
select option,
select optgroup {
  background: var(--bg-input);
  color: var(--text-main);
}
select option:checked,
select option:hover {
  background: rgba(123, 140, 255, 0.2);
}

.search-wrap { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.search-btn, .clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.search-btn:hover, .clear:hover { color: var(--primary); border-color: rgba(123, 140, 255, 0.55); background: rgba(255,255,255,0.06); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumbs .crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
}
.breadcrumbs .crumb:hover { color: var(--primary); border-color: rgba(123, 140, 255, 0.55); }
.breadcrumbs .sep { color: var(--text-muted); }

.pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}
.pager #adminPageInfo { min-width: 44px; text-align: center; }

.table {
  display: grid;
  grid-template-columns: minmax(260px, 3fr) 180px 120px 120px 90px 200px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.table .row { display: contents; }
.table .row > div {
  padding: 5px 5px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table .row > div:nth-child(2) {
  white-space: normal;
  overflow: visible;
}
.table .row.head > div {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.table .row:last-child > div { border-bottom: none; }
.table .row:hover:not(.head) > div { background: rgba(255,255,255,0.03); }
.cell-main { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.table .row > div.right { justify-content: flex-end; overflow: visible; }
.actions-cell { display: flex; align-items: center; gap: 6px; justify-content: flex-end; position: relative; }
.actions-primary { display: flex; gap: 4px; }
.actions-menu {
  display: none;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}
.actions-toggle { display: inline-flex; }

/* === POPRAWA APLIKACJI KLIENCKIEJ === */
.client-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  transition: all 0.2s;
  min-height: 56px;
}
.client-list-item:hover {
  border-color: rgba(123, 140, 255, 0.55);
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,0.03);
}
.client-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  position: relative;
}
.client-actions-primary,
.client-actions-menu {
  display: flex;
  gap: 8px;
}
.client-actions-menu {
  display: none;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}
.client-actions .icon-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
}
.client-actions .icon-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
  color: var(--primary);
}

/* NOWA SIATKA DLA WIDOKU KLIENTA (RESPONSYWNA) */
.client-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
/* Mobile Fix */
@media (max-width: 900px) {
  .client-grid {
    grid-template-columns: 1fr; /* Jeden pod drugim na mobile */
  }
}

/* === MODAL & SWITCHES === */
dialog {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-lg);
  width: min(520px, 90vw);
  color: var(--text-main);
  animation: fadeIn 0.2s ease-out;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); }
.d-h { padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 18px; font-weight: 600; }
.d-c { padding: 24px; }
#userDlg { width: min(860px, 96vw); }
#userDlg .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
@media (max-width: 700px) {
  #userDlg .form-grid { grid-template-columns: 1fr; }
}
#mfaBox {
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  color: var(--text-main);
}
#shareDlg .d-c { position: relative; }
.actions.right { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

#shareDlg {
  width: min(980px, 96vw);
}
#shareDlg .share-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
#shareDlg .share-columns .modal-section {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
#shareDlg .share-columns .share-wide {
  grid-column: 1 / -1;
}
#shareUsersSection {
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 0;
  border-bottom: none;
}
#shareUrlWrap {
  background: var(--bg-input) !important;
  border: 1px solid var(--border);
}

#previewDlg {
  width: min(96vw, 1200px);
  height: min(90vh, 900px);
}
#previewDlg .d-c {
  height: calc(100% - 64px);
  display: flex;
  flex-direction: column;
}
#previewBox {
  flex: 1;
  min-height: 0;
}

/* Nowoczesny Toggle Switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.14);
  transition: .3s;
  border-radius: 34px;
  border: 1px solid var(--border);
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: rgba(255,255,255,0.92);
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
input:checked + .slider { background-color: rgba(123, 140, 255, 0.65); border-color: rgba(123,140,255,0.6); }
input:checked + .slider:before { transform: translateX(20px); }

.modal-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.modal-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.modal-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-label { font-weight: 500; font-size: 14px; }
.modal-desc { font-size: 12px; color: var(--text-muted); }

/* Inne */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid transparent;
}
.pill.ok { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.progress {
  height: 6px;
  background: rgba(255,255,255,0.10);
  border-radius: 99px;
  overflow: hidden;
  margin: 4px 0;
  border: 1px solid rgba(255,255,255,0.06);
}
.progress > i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.chk { display: inline-flex; align-items: center; cursor: pointer; position: relative; }
.chk input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.chk input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.layout-admin { display: grid; grid-template-columns: 300px 1fr; gap: 24px; margin-top: 24px; margin-bottom: 40px; }
.stack { display: grid; gap: 16px; }
.stack.s8 { gap: 8px; }
.stack.s12 { gap: 12px; }
.history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.layout-admin > aside.stack { gap: 12px; }
.layout-admin > aside .card { margin-bottom: 12px; }

.layout-admin > aside .card.compact .card-h {
  height: 44px;
  padding: 6px 14px;
}
.layout-admin > aside .card.compact .card-c {
  padding: 10px 14px;
}

.grid-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; padding: 4px; }
.icon-tile {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.icon-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(123, 140, 255, 0.55);
  background: rgba(255,255,255,0.03);
}
.tile-thumb {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid rgba(255,255,255,0.06);
}
.tile-thumb.is-preview {
  cursor: pointer;
  border-color: rgba(123, 140, 255, 0.4);
  background: rgba(255,255,255,0.05);
}
.tile-thumb svg { width: 48px; height: 48px; }
.tile-title { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta { font-size: 12px; color: var(--text-muted); }
.tile-actions { display: grid; grid-template-columns: 24px 1fr; align-items: flex-start; gap: 8px; margin-top: auto; }
.tile-actions.no-check { grid-template-columns: 1fr; }
.tile-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 32px);
  gap: 6px;
  justify-content: start;
  justify-items: center;
  flex: 1;
  min-width: 0;
}
.name-stack { display: flex; flex-direction: column; min-width: 0; }
.drop-target {
  outline: 2px dashed rgba(123, 140, 255, 0.7);
  outline-offset: 2px;
  background: rgba(123, 140, 255, 0.08);
}
.icon-tile.back-tile {
  border-color: rgba(123, 140, 255, 0.45);
  background: rgba(255,255,255,0.02);
}
.icon-tile.back-tile .tile-thumb {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
}
.file-preview-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}
.file-preview-link:hover { color: var(--primary); text-decoration: underline; }
.section-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.divider {
  height: 1px;
  background: var(--border);
  opacity: 0.6;
}
.group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
}
.group-item:hover { border-color: rgba(123, 140, 255, 0.55); }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1000px 500px at 30% 20%, rgba(123,140,255,0.18), transparent 60%),
              radial-gradient(900px 500px at 80% 70%, rgba(16,185,129,0.12), transparent 55%),
              linear-gradient(135deg, #070c16 0%, #0b1220 55%, #081023 100%);
}
.login-card { width: 100%; max-width: 400px; padding: 20px; box-shadow: var(--shadow-lg); }

.login-brand { text-align: center; margin-bottom: 24px; }
.footer, .app-footer { text-align: center; padding: 24px; color: var(--text-muted); font-size: 12px; }

.bulk-bar {
  background: #6677ff;
  border: 1px solid #6677ff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  min-height: 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: min(560px, calc(100vw - 32px));
  box-shadow: var(--shadow-md);
}
.bulk-bar.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.player { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; position: relative; box-shadow: var(--shadow-md); }
.hidden { display: none !important; }

/* Crafted with ❤️ by PixelShark.eu */
.muted { color: var(--text-muted); }
.s { font-size: 12px; }
.kv { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) {
  .layout-admin { grid-template-columns: 1fr; }
  .table { grid-template-columns: 1fr 1fr; }
  .table .row > div:not(.cell-main):not(.right) { display: none; }
  .table .head { display: none; }
}
@media (max-width: 768px) {
  .table { grid-template-columns: minmax(0, 1fr) auto; }
  .table .row > div.right { justify-content: flex-end; }
}
.table .row.actions-open > div.right .actions-menu { display: flex; }
.client-list-item.actions-open .client-actions-menu { display: flex; }
.comment-item {
  background: #f9fafb;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.comment-meta .icon-btn { width: 28px; height: 28px; }
@media (max-width: 1000px) {
  .history-grid { grid-template-columns: 1fr; }
}

#lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
#lightbox .lb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
#lightbox .lb-content { position: relative; z-index: 10; }
#lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); }

.comments .group { margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); }
.comments .group h4 { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); margin: 0; }
.comments .item { padding: 10px 14px; background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.comments .item:last-child { border-bottom: none; }
.comments .date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.date-stack { display: flex; flex-direction: column; gap: 2px; line-height: 1.05; }
.folder-count { color: var(--text-muted); font-weight: 500; }

.seg-toggle {
  display: inline-flex;
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.seg-toggle .seg {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 999px;
  height: 36px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}
.seg-toggle .seg:hover { color: var(--text-main); }
.seg-toggle .seg.active {
  background: rgba(255,255,255,0.06);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.copy-toast {
  position: absolute;
  right: 24px;
  bottom: 64px;
  background: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}
.copy-toast.show { opacity: 1; transform: translateY(0); }

.share-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}
.share-meta .meta-card {
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}
.share-meta .meta-label {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.share-meta .meta-value {
  color: var(--text-main);
  font-weight: 600;
  margin-top: 4px;
  word-break: break-word;
}

.user-pick-list {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  max-height: 240px;
  overflow: auto;
}
.user-pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.user-pick-item:last-child { border-bottom: none; }
.user-pick-item:hover { background: rgba(255,255,255,0.03); }
.user-pick-item .meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}
.user-pick-item input[type="checkbox"] { width: 16px; height: 16px; }

.hidden { display: none !important; }
