@import '../global.css';

@font-face {
  font-family: 'Nebulas-Regular';
  src: url('/fonts/Nebulas-Regular.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AberMono-Bold';
  src: url('/fonts/AberMono-Bold.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body * {
  font-weight: var(--font-weight);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  font-weight: var(--font-weight);
  letter-spacing: var(--text-spacing);
  overflow: hidden;
  padding-bottom: 10px;
  color: var(--theme-text-light);
  background-color: var(--bg);
}

body.share-view {
  background: var(--bg);
  overflow: hidden;
  padding-bottom: 0;
}

a {
  color: inherit;
}

main,
.app-main {
  width: 100%;
  max-width: none;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  font-size: 0.6rem;
  color: var(--theme-text-dark);
}

.hint {
  color: var(--muted);
  font-size: 0.55rem;
}

.eyebrow,
.hint,
.badge,
.status-pill,
.top-status,
.review-pill,
.comment-time,
.comment-timestamp,
.video-card__review,
.video-card__meta small,
.folder-card__body small,
.version-chip small,
.project-nav-item small {
  font-family: 'AberMono-Bold', 'Nebulas-Regular', sans-serif;
  text-transform: uppercase;
  font-weight: 200;
  font-size: 0.65rem;
  letter-spacing: var(--text-spacing);
}

.card {
  background: var(--panel-bg);
  border-radius: 10px;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 200;
}

label.floating-field {
  position: relative;
  display: block;
  gap: 0;
  font-size: 0.85rem;
  font-weight: 200;
}

input,
textarea,
select,
button,
progress {
  font: inherit;
}

input {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--theme-text-light);
}

textarea,
select {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--theme-text-light);
}

textarea {
  resize: vertical;
}

.floating-field input {
  width: 100%;
  padding: 1.1rem 0 0.6rem;
  border: none;
  border-bottom: 2px solid rgba(246, 246, 249, 0.2);
  background: transparent;
  background-color: transparent !important;
  color: var(--theme-text-light);
  font-size: 1rem;
  border-radius: 0;
}

.floating-field input:focus {
  border-bottom-color: var(--primary);
  outline: none;
}

.floating-field input::placeholder {
  color: transparent;
}

.floating-label {
  position: absolute;
  left: 0;
  top: 1rem;
  font-size: 0.95rem;
  letter-spacing: var(--text-spacing);
  color: var(--theme-text-light);
  pointer-events: none;
  transition: all 0.2s ease;
}

.floating-label__hint {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-left: 0.35rem;
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
}

.floating-highlight {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.floating-field input:focus+.floating-label,
.floating-field input:not(:placeholder-shown)+.floating-label {
  top: -0.35rem;
  font-size: 0.7rem;
  letter-spacing: var(--text-spacing);
  color: var(--primary);
}

.floating-field input:focus+.floating-label+.floating-highlight,
.floating-field input:not(:placeholder-shown)+.floating-label+.floating-highlight {
  width: 100%;
}

.floating-field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset;
  -webkit-text-fill-color: var(--theme-text-light);

  background-color: transparent !important;
}

.floating-field input:-webkit-autofill+.floating-label {
  top: -0.35rem;
  font-size: 0.7rem;
  letter-spacing: var(--text-spacing);
  color: var(--primary);
}

.floating-field input:-webkit-autofill+.floating-label+.floating-highlight {
  width: 100%;
}

.floating-field input:-webkit-autofill+.floating-label,
.floating-field input:-webkit-autofill+.floating-label+.floating-highlight {
  transition-delay: 0s;
}

button {
  border: none;
  border-radius: 2px;
  background: var(--primary);
  color: var(--theme-text-light);
  font-weight: 200;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

button:hover {
  opacity: 0.92;
}

button.ghost {
  background: transparent;
  color: inherit;
}

button.small {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

button.ghost.tiny {
  padding: 0.28rem 0.5rem;
  font-size: 0.6rem;
}

button.ghost.tiny.danger {
  color: var(--danger);
  border: none;
}

button.ghost.tiny.minimal-btn {
  padding: 0.2rem;
  font-size: 0.65rem;
  border-radius: 5px;
  background: transparent;
  min-width: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  transition: background 0.2s ease, transform 0.12s ease;
}

button.ghost.tiny.minimal-btn:hover,
button.ghost.tiny.minimal-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

button.ghost.tiny.minimal-btn:active {
  transform: scale(0.93);
}

.icon-button svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
}

.icon-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button__icon img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.share-link-control {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--theme-text-dark);
}

.share-link-prompt {
  font-size: 0.55rem;
  letter-spacing: var(--text-spacing);
  text-transform: uppercase;
  color: var(--theme-text-dark);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  min-height: 1em;
  margin-bottom: 0.15rem;
  text-align: center;
  position: absolute;
}

.share-link-control.is-prompt-visible .share-link-prompt {
  opacity: 1;
  transform: translateY(0);
}

.auth-button {
  margin: 1.25rem auto 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
}

.auth-button:focus-visible {
  outline: none;
}

.auth-button__pad {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4em;
  height: 4.4em;
  background-color: var(--bg);
  border-radius: 5px;
}

.auth-button__tile {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 4em;
  height: 4em;
  border-radius: 5px;
  border: none;
  outline: none;
  background-color: var(--color-hex-2c2c2c);
  box-shadow: rgba(0, 0, 0, 0.377) 10px 10px 8px,
    #f8f2ec 1.5px 1.5px 1px 0px inset, #5a5a5a -3.2px -3.2px 8px 0px inset;
  cursor: pointer;
  transition: 0.1s ease-in-out;
}

.auth-button__tile--primary {
  background: var(--color-hex-727373);
  box-shadow:
    rgba(0, 0, 0, 0.37) 10px 10px 8px,
    #bababa 2px 2px 10px inset,
    #444444 -4px -4px 1px inset;
}

.auth-button__tile--accent {
  background: var(--color-hex-939393);
  box-shadow:
    rgba(0, 0, 0, 0.37) 10px 10px 8px,
    #bababa 2px 2px 10px inset,
    #444444 -4px -4px 1px inset;
}

.auth-button__tile--muted {
  background: var(--color-hex-727373);
  box-shadow:
    rgba(0, 0, 0, 0.37) 10px 10px 8px,
    #bababa 2px 2px 10px inset,
    #444444 -4px -4px 1px inset;
}

.auth-button__text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  letter-spacing: var(--text-spacing);
  text-align: center;
  color: var(--theme-text-light);
  text-transform: uppercase;
  transition: transform 0.1s ease, color 0.2s ease;
}

.auth-button:active .auth-button__text {
  transform: translateY(0.5px);
}

.auth-button:active .auth-button__tile--primary,
.auth-button:active .auth-button__tile {
  box-shadow:
    rgba(0, 0, 0, 0.37) 0 0 0,
    inset 0.5px 0.5px 4px rgba(0, 0, 0, 0.8),
    #c7c3c0 -3.2px -3.2px 8px inset;
}

.auth-button:active .auth-button__tile--accent {
  box-shadow:
    rgba(0, 0, 0, 0.37) 0 0 0,
    inset 0.5px 0.5px 4px rgba(0, 0, 0, 0.8),
    #e4e4e4 -3.2px -3.2px 8px inset;
}

.auth-button:active .auth-button__tile--muted {
  box-shadow:
    rgba(0, 0, 0, 0.37) 0 0 0,
    inset 0.5px 0.5px 4px rgba(0, 0, 0, 0.8),
    #545251 -3.2px -3.2px 8px inset;
}

.hidden {
  display: none !important;
}

.radio-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-start;
  align-items: stretch;
  margin: 0.5rem 0 1rem;
}

.radio-option {
  position: relative;
  display: inline-flex;
}

.radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-tile {
  min-width: 96px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 14px;
  border: 2px solid rgba(246, 246, 249, 0.18);
  background: rgba(246, 246, 249, 0.03);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.radio-tile::before {
  content: '';
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid rgba(246, 246, 249, 0.35);
  background: transparent;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.radio-tile:hover {
  color: var(--primary);
}

.radio-tile:hover::before {
  opacity: 1;
  transform: scale(1);
}

.radio-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.radio-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.radio-label {
  font-size: 0.8rem;
  letter-spacing: var(--text-spacing);
  text-transform: uppercase;
  color: rgba(246, 246, 249, 0.65);
}

.radio-input:checked+.radio-tile {
  color: var(--primary);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

.radio-input:checked+.radio-tile::before {
  opacity: 1;
  transform: scale(1);
  background: var(--primary);
}

.radio-input:checked+.radio-tile .radio-label {
  color: var(--primary);
}

.radio-input:focus-visible+.radio-tile {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Auth */

.auth-screen {
  margin-top: 4rem;
}

.auth-mode-tabs {
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}

.auth-card {
  background: var(--surface);
  border-radius: 32px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.auth-copy h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.auth-forms {
  display: grid;
  gap: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px dashed var(--accent-strong);
  padding: 0.5rem 1rem;
  font-size: 0.65rem;
}

.status-pill[data-tone='error'],
.top-status[data-tone='error'] {
  color: var(--danger);
}

.status-pill[data-tone='success'],
.top-status[data-tone='success'] {
  color: var(--success);
}

/* Dashboard */

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin-top: 13px;
  margin-bottom: -5px;
  padding-left: 65px;
  position: relative;
}

#new-project-btn {
  border: none;
  color: var(--theme-text-dark);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.quick-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 64px;
  border-radius: 10px;
  background: var(--theme-panel);
  color: var(--theme-text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.4rem;
  gap: 0.85rem;
  overflow: visible;
  z-index: 950;
}

.quick-rail__button {
  width: 35px;
  height: 35px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--theme-text-dark);
  font-size: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-radius 0.2s ease;
  position: relative;
}

.quick-rail__button:hover {
  border-radius: 3px;
  transition: border-radius 0.2s ease;
}

.quick-rail__icon {
  line-height: 1;
  color: inherit;
}

.quick-rail__icon svg,
.quick-rail__icon img {
  width: 20px;
  height: 20px;
}

.quick-rail__button--alert .quick-rail__dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255, 77, 148, 0.8);
}

.quick-rail__button--cta {
  margin-top: auto;
  background: var(--color-hex-f2f0ef);
  border: none;
  color: var(--theme-text-dark);
  font-weight: 200;
  font-size: 0.80rem;
}

.quick-rail__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: none;
  color: inherit;
  font-weight: 200;
}

.quick-rail__menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  margin-top: auto;
  position: relative;
}

@media (max-width: 960px) {
  .dashboard {
    padding-left: 0;
    margin-top: 0;
    padding-bottom: 72px;
  }

  .dashboard-grid {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem 0.5rem;
  }

  .rail {
    position: relative;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .rail .project-card {
    width: 100%;
  }

  .media-view,
  .detail-view {
    margin-top: 0;
  }

  .quick-rail {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: var(--theme-panel);
    color: var(--theme-text-dark);
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    gap: 0.4rem;
    height: auto;
    z-index: 951;
  }

  .quick-rail__button {
    width: auto;
    height: 40px;
    border-radius: 10px;
  }

  body.modal-open .quick-rail {
    transform: translateY(100%);
    opacity: 0.3;
    pointer-events: none;
  }

  .quick-panel {
    left: 0;
    width: 100%;
    max-width: 100vw;
  }
}



.quick-panel {
  position: fixed;
  top: 0;
  left: 64px;
  width: var(--rail-width);
  max-width: calc(100vw - 64px);
  height: 100vh;
  background: rgba(7, 8, 12, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(calc(-100% - 64px));
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 901;
  opacity: 0;
  pointer-events: none;
}

.quick-panel,
.quick-panel * {
  color: var(--cream);
}

.quick-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  z-index: 901;
}

.quick-panel.hidden {
  display: none;
  z-index: 901;
}

.quick-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.quick-panel__body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-panel__view {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
}

.quick-panel__view.hidden {
  display: none;
}

.settings-group {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-toggle span {
  display: block;
  font-size: 0.9rem;
}

.setting-toggle small {
  display: block;
  color: var(--muted);
  font-size: 0.5rem;
}

.setting-toggle input {
  appearance: none;
  position: relative;
  width: 4em;
  height: 1.6em;
  border-radius: 0.2em;
  background: var(--color-hex-1a1d27);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 0 0.1em rgba(0, 0, 0, 0.8);
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.setting-toggle input::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 100%;
  left: 0;
  transition: left 0.3s ease, transform 0.3s ease;
}

.setting-toggle input::after {
  content: '';
  position: absolute;
  left: 0.2em;
  top: 0.2em;
  width: 1.8em;
  height: 1.2em;
  border-radius: 0.1em;
  background: var(--color-hex-f2f0ef);
  box-shadow: 0 0 0.2em rgba(255, 255, 255, 0.3);
  transition: left 0.3s ease;
}

.setting-toggle input:checked::before {
  left: 50%;
  transform: scaleX(1.1);
}

.setting-toggle input:checked::after {
  left: 2em;
}

.setting-toggle input:checked {
  background: var(--color-hex-1a1d27);
}

.top-menu--rail {
  position: absolute;
  bottom: 80px;
  left: 70px;
  width: min(240px, calc(100vw - 110px));
  background: rgba(9, 9, 12, 0.96);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 1;
  pointer-events: auto;
  transform: none;
  z-index: 951;
}

.top-menu--rail.hidden {
  display: none;
}



.dashboard-grid {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.rail {
  display: none;
}

.detail-layout {
  grid-template-columns: 1fr;
  gap: 0;
}



.comments-panel {
  border-radius: 0;
  border: none;
  padding: 0;
  background: transparent;
  min-height: 0;
}

.comments-panel__stream {
  padding-left: 0;
  padding-right: 0;
}

.comment-list {
  padding: 0 0.25rem;
  gap: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comments-panel__composer {
  z-index: 5;
}

.custom-controls__bottom {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: nowrap;
  padding-top: 12px;
  overflow-x: auto;
}

.custom-controls__bottom>div {
  width: auto;
  flex: 0 0 auto;
}

.custom-controls__bottom .controls-left {
  flex: 0 0 20%;
  min-width: 20%;
  align-items: center;
}

.custom-controls__bottom .controls-left .audio-gain {
  justify-content: space-between;
  width: 100%;
}

.custom-controls__bottom .controls-left,
.custom-controls__bottom .controls-center,
.custom-controls__bottom .controls-right {
  flex-wrap: nowrap;
}

.detail-view {
  margin: 0;
  padding: 0;
}

.workspace--full {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.workspace--full .workspace__header {
  padding: 0 1rem 0rem;
}




.top-bar {
  position: relative;
  background: var(--theme-panel);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--top-bar-height);
  z-index: 1000;
  color: var(--theme-text-dark);
}

.top-bar--minimal {
  min-height: var(--top-bar-height);
}

.top-bar__controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand--compact span {
  font-size: 1rem;
}

.brand--compact small {
  font-size: 0.55rem;
  letter-spacing: var(--text-spacing);
  text-transform: uppercase;
  color: var(--muted);
}

.brand__dot {
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
}

.brand span {
  font-size: 1.15rem;
}

.top-status {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  border: 1px dashed var(--accent-strong);
  font-size: 0.7rem;
}


.top-bar__controls .top-status,
.media-board__status .top-status {
  padding: 0.25rem 0.85rem;
  font-size: 0.58rem;
}

.media-board__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-panel__user {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.quick-panel__user span {
  font-size: 0.95rem;
}

.quick-panel__user small {
  font-size: 0.65rem;
  color: var(--muted);
}

.quick-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  padding: 0.35rem;
  font-size: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  gap: .1rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.dashboard.detail-active .dashboard-grid {
  grid-template-columns: 1fr;
}

.dashboard.detail-active .rail {
  display: none;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  min-height: 0;
  width: var(--rail-width);
  flex: 0 0 var(--rail-width);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--theme-panel);
}

.project-nav-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--theme-text-light);
}

.rail__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-board__header {
  align-items: flex-start;
  gap: 0.75rem;
}

.project-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-search {
  border: none;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  background: var(--bg);
  font-size: .8rem;
  letter-spacing: var(--text-spacing);
}

#project-search:focus {
  outline: none;
}


.workspace-share-card {
  background: var(--theme-text-dark);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  color: var(--theme-text-dark);
}

.workspace-share-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
}

.workspace-share-card .eyebrow {
  color: var(--theme-text-light);
}

.workspace-share-card__toggle {
  font-size: 0.75rem;
  font-weight: 200;
  letter-spacing: var(--text-spacing);
  padding: 0.35rem 0.65rem;
  border: none;
  outline: none;
  background: transparent;
  color: var(--theme-text-light);
}

.workspace-share-card__toggle-icon {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-text-light);
}

.workspace-share-link-list {
  max-height: 230px;
  overflow-y: auto;
  padding-right: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--theme-text-dark);
}

.workspace-share-card--collapsed .workspace-share-link-list {
  display: none;
}

.workspace-share-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.35rem 0;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  background: var(--theme-panel);
  color: var(--theme-text-dark);
}

.workspace-share-link__open {
  width: 95%;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  text-align: left;
  padding: 0.35rem 0.8rem;
  border: none;
  background: transparent;
  color: var(--theme-text-dark);
}

button.workspace-share-link__open.ghost,
button.workspace-share-card__toggle.ghost {
  border: none;
  box-shadow: none;
  background: transparent;
}

.workspace-share-link__open .workspace-share-link__title {
  word-break: break-word;
  color: inherit;
}

.workspace-share-link__delete {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.workspace-share-link__delete {
  border: none;
  background: transparent;
  box-shadow: none;
}

.workspace-share-link:hover .workspace-share-link__delete,
.workspace-share-link:focus-within .workspace-share-link__delete {
  opacity: 1;
}


.project-nav-item {
  border-radius: 10px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.8rem;
  background-color: var(--theme-text-dark);
}

.project-tree {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tree-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
  margin-left: calc(var(--tree-depth, 0) * 14px);
  user-select: none;
  -webkit-user-drag: none;
}

.tree-row__toggle {
  width: 1.4rem;
  height: 1.4rem;
  border: none;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}

.tree-row__label {
  text-align: left;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  border-radius: 6px;
  font-size: 0.7rem;
  user-select: none;
  -webkit-user-drag: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.tree-row__label:hover,
.tree-row__toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tree-row__icon {
  display: inline-flex;
  width: 14px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.8;
}

.tree-row__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tree-row--dropping {
  background: rgba(242, 201, 143, 0.15);
}

.tree-row--dragging {
  opacity: 0.35;
}

.tree-row__meta {
  font-size: 0.6rem;
  color: var(--muted);
}

.tree-row--folder.is-open .tree-row__toggle {
  font-weight: 200;
}

.tree-row--video {
  grid-template-columns: auto 1fr;
}

.tree-row__bullet {
  font-size: 0.55rem;
  opacity: 0.7;
  padding-left: 0.2rem;
}

.form-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
}

.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  border-radius: 10px;
  padding: 0.75rem;
}

.member-row__meta {
  display: flex;
  flex-direction: column;
}

.member-row__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.member-row__actions select {
  min-width: 120px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.media-view {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

.asset-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  height: 100%;
  background: var(--theme-panel);
}

.media-board-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.media-selection-panel {
  border-radius: 8px;
  background: var(--bg);
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: var(--text-spacing);
}

.media-selection-panel__label {
  flex: 1;
  color: var(--muted);
}

.media-selection-panel__size {
  color: rgba(255, 255, 255, 0.75);
}

.media-selection-panel__download {
  padding: 0.35rem 0.75rem;
}

.detail-view {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 460px;
  gap: 1.5rem;
  flex: 1;
  min-height: 0;
  background: var(--theme-panel);
  border-radius: 10px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.breadcrumb span {
  color: var(--theme-text-dark);
  letter-spacing: var(--text-spacing);
}

.breadcrumb button {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--theme-text-dark);
}

.media-board__breadcrumb {
  margin-top: 0.2rem;
  margin-bottom: 0;
}

.folder-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
  transition: background 0.2s ease;
}

.folder-list.folder-list--file-drop {
  border: 1px dashed var(--primary);
  background: rgba(242, 201, 143, 0.2);
}

.folder-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 10px;
  padding: 0.4rem;
}

.folder-row__body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.folder-row__body:hover {
  background: rgba(242, 201, 143, 0.15);
  border-radius: 10px;
}

.folder-thumb {
  width: 64px;
  height: 48px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.folder-thumb--empty {
  background: rgba(242, 201, 143, 0.2);
}

.folder-row__actions {
  display: flex;
  gap: 0.35rem;
}

.folder-row--dropping {
  background: rgba(242, 201, 143, 0.2);
}

.folder-row--dragging {
  opacity: 0.35;
}

.folder-card--dragging {
  opacity: 0.35;
}

.folder-row--drag-preview {
  position: fixed;
  top: -9999px;
  left: -9999px;
  pointer-events: none;
  opacity: 0.85;
  transform: scale(0.92);
  transform-origin: top left;
  background: rgba(10, 10, 12, 0.95);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  z-index: 9999;
}

.video-list {
  border-radius: 10px;
  border: none;
  padding: 0.75rem 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg);
  position: relative;
}

.video-list::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
}

.video-list>* {
  position: relative;
  z-index: 1;
}

.video-list.video-list--file-drop {
  background: rgba(242, 201, 143, 0.12);
  box-shadow: inset 0 0 35px rgba(242, 201, 143, 0.18);
}

.media-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.media-group__header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.25rem;
}



.media-group__toggle {
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.media-group__toggle:focus-visible {
  outline: none;
}


.media-group__toggle-icon {
  font-size: .75rem;
  letter-spacing: var(--text-spacing);
  color: var(--cream);
}

.media-group__content {
  overflow: hidden;
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.media-group--collapsed .media-group__content {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.media-group--collapsed {
  margin-bottom: 0.5rem;
}

.media-group__count {
  font-weight: 200;
  letter-spacing: var(--text-spacing);
  font-size: 0.75rem;
}

.media-group__meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.media-group__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.media-group__grid--assets .video-card,
.media-group__grid--assets .pending {
  flex: 0 0 var(--folder-card-width);
}

.media-group__grid--assets .video-card.folder-card {
  flex: 0 0 var(--folder-card-width);
}

.media-group__grid:empty::after {
  content: 'No items in this section yet.';
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.5rem;
}

.pending-upload-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.25rem 0.25rem 0.4rem;
  border-radius: 8px;
  border: 1px dashed rgba(255, 215, 145, 0.8);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.pending-upload-list.hidden {
  display: none;
}

.pending-upload-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
}

.pending-upload-card h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 200;
}

.pending-upload-card small {
  font-size: 0.8rem;
  display: block;
  color: var(--muted);
}

.pending-progress-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pending-progress-bar span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.pending-upload-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
}

.pending-upload-card__cancel {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.pending-upload-card__cancel:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.pending-upload-card__cancel:hover {
  color: var(--primary);
}

.video-card {
  border-radius: 10px;
  padding: 0.25rem;
  background: var(--theme-card);
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: var(--folder-card-width);
  height: var(--folder-card-height);
  flex: 0 0 var(--folder-card-width);
  position: relative;
}

.media-card__checkbox {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
}

.media-card__checkbox label {
  display: inline-flex;
  align-items: center;
}

.media-card__checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.media-card__checkbox span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.media-card__checkbox span::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 3px;
  display: none;
}

.media-card__checkbox input:checked+span {
  background: transparent;
  box-shadow: none;
}

.media-card__checkbox input:checked+span::after {
  display: none;
}

.media-card__checkbox input:focus-visible+span {
  outline: none;
  box-shadow: none;
}

.video-card.video-card--selected {
  background: var(--primary);
}

.video-card.folder-card.video-card--selected .folder-card__body {
  background: var(--primary);
}

.video-card__link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.video-card__link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.video-card:hover {}

.video-card.active {
  background: var(--primary);
}

.video-card.dragging {
  opacity: 0.6;
}

.video-card--dropping {
  background: rgba(123, 77, 72, 0.15);
}

.video-card.folder-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  width: var(--folder-card-width);
  height: var(--folder-card-height);
  border: none;
  border-radius: 10px;
  background: var(--bg);

}

.folder-card__tab {
  display: none;
}

.folder-card__body {
  position: relative;
  height: 100%;
  width: 100%;
  padding: 1.35rem 1.05rem 1.05rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}



.folder-card__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.folder-card__svg-path {
  fill: var(--theme-card);
  stroke-width: 1;
}

.folder-card__svg-mid {
  fill: var(--primary);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: bottom center;
  filter: drop-shadow(0 -4px 6px rgba(0, 0, 0, 0.25)) drop-shadow(0 -1px 2px rgba(0, 0, 0, 0.15));
}

.folder-card:hover .folder-card__svg-mid {
  transform: translateY(-10px);
}

.folder-card__svg-plate {
  fill: var(--theme-card);
}

.folder-card__svg--overlay {
  transform: none;
}

.folder-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: auto;
}

.video-card.folder-card.folder-card--up {
  border: 1px dashed var(--primary);
  background: rgba(123, 77, 72, 0.15);
  width: 78px;
  min-width: 78px;
  flex: 0 0 78px;
  transition: width 0.25s ease, min-width 0.25s ease, flex-basis 0.25s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: flex;
}

.video-card.folder-card.folder-card--up .folder-card__body {
  color: var(--cream);
  position: relative;
  padding: 0.8rem 0.6rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.video-card.folder-card.folder-card--up .folder-card__svg-path {
  fill: var(--theme-card);
  stroke-width: 1.2;
}

.video-card.folder-card.folder-card--up .folder-card__svg-plate {
  fill: var(--theme-card);
  stroke-dasharray: 8 4;
}

.video-card.folder-card.folder-card--up .folder-card__body::before {
  content: '⇧';
  display: block;
  font-size: 1.6rem;
  color: var(--cream);
  opacity: 1;
  transition: transform 0.2s ease;
}

.video-card.folder-card.folder-card--up .folder-card__body span {
  font-size: 0.85rem;
  letter-spacing: var(--text-spacing);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.video-card.folder-card.folder-card--up .folder-card__body h4,
.video-card.folder-card.folder-card--up .folder-card__body small {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.video-card.folder-card.folder-card--up .folder-card__tab {
  background: var(--theme-card);
}

.video-card.folder-card.folder-card--up:hover,
.video-card.folder-card.folder-card--up.folder-card--dropping {
  width: var(--folder-card-size);
  min-width: var(--folder-card-size);
  flex: 0 0 var(--folder-card-size);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  background: var(--theme-card);
  ;
}

.video-card.folder-card.folder-card--up:hover .folder-card__body::before,
.video-card.folder-card.folder-card--up.folder-card--dropping .folder-card__body::before {
  transform: translateY(-4px);
}

.video-card.folder-card.folder-card--up:hover .folder-card__body span,
.video-card.folder-card.folder-card--up.folder-card--dropping .folder-card__body span {
  opacity: 1;
  transform: translateX(0);
}

.video-card.folder-card.folder-card--up:hover .folder-card__body h4,
.video-card.folder-card.folder-card--up.folder-card--dropping .folder-card__body h4,
.video-card.folder-card.folder-card--up:hover .folder-card__body small,
.video-card.folder-card.folder-card--up.folder-card--dropping .folder-card__body small {
  opacity: 1;
  transform: translateX(0);
}

.folder-card--dropping .folder-card__body {
  border: none;
}

.folder-card--dropping .folder-card__svg-path {
  stroke: var(--primary);
  filter: drop-shadow(0 8px 22px rgba(131, 74, 74, 0.35));
}

.folder-card--dropping .folder-card__svg-plate {
  stroke: var(--primary);
  filter: drop-shadow(0 8px 22px rgba(131, 74, 74, 0.35));
}

.video-card.pending {
  opacity: 0.85;
  cursor: default;
}

.video-card--drag-preview {
  position: fixed;
  top: -9999px;
  left: -9999px;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: top left;
  opacity: 0.85;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  z-index: 9999;
}

.video-card.pending .video-card__thumb {
  background: rgba(131, 74, 74, 0.1);
  color: var(--muted);
}

.pending-progress {
  font-size: 0.45rem;
  font-weight: 200;
}

.context-menu {
  position: absolute;
  z-index: 9999;
  background: rgba(6, 7, 10, 0.98);
  border-radius: 18px;
  padding: 0.75rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  display: block;
  min-width: 220px;
}

.context-menu__list,
.context-menu__sub {
  background: transparent;
}

.context-menu__list {
  min-width: 220px;
}

.context-menu__sub {
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.context-menu__sub::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -8px;
  width: 1px;
  height: calc(100% - 20px);
  background: rgba(255, 255, 255, 0.08);
}

.context-menu.hidden {
  display: none;
}

.context-menu button,
.context-menu__sub-item {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.context-menu button:hover,
.context-menu__sub-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.context-menu button.danger {
  color: var(--danger);
}

.context-menu__arrow {
  opacity: 0.6;
}

.context-menu__sub-item {
  flex-direction: column;
  gap: 0.15rem;
}

.context-menu__meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.context-menu[data-submenu-open='true'] .context-menu__sub {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0);
}

.video-card__preview {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.55rem;
}

.video-card__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 5px;
  pointer-events: none;
}

.video-card__preview--image {
  background-color: var(--bg);
}

.video-card__comments {
  position: absolute;
  bottom: 0.35rem;
  right: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.65rem;
  letter-spacing: var(--text-spacing);
}

.video-card__comments svg {
  width: 0.85rem;
  height: 0.85rem;
}

.video-card__comments-count {
  color: var(--theme-text-light);
}

.video-card__preview--image::before {
  content: '';
  position: absolute;
  inset: 0;
}

.video-card__preview--empty {
  background: rgba(0, 0, 0, 0.5);
  font-size: 0.425rem;
  letter-spacing: var(--text-spacing);
  text-transform: uppercase;
}

.video-card__review {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  background: var(--surface-secondary);
  font-size: 0.4rem;
  padding: 0.15rem 0.45rem;
  letter-spacing: var(--text-spacing);
}

.video-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-left: 3px;
  margin-bottom: 3px;
}

.video-card h4,
.folder-card__body h4 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  color: var(--theme-text-dark);
}

.video-card__meta small,
.folder-card__body small {
  color: var(--theme-text-dark);
}

.review-pill {
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: capitalize;
}

.review-pill.approved {
  color: var(--success);
}

.review-pill.needs_changes {
  color: var(--danger);
}

.review-pill.in_review {
  color: var(--theme-highlight);
}

.workspace {
  gap: 0.75rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--theme-panel);
  border-radius: 10px;
  padding: 1rem 1.25rem 1.25rem;
  box-sizing: border-box;
  overflow: hidden;
  color: var(--theme-text-dark);
}

.player-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  min-height: 0;
  flex: 1;
}

.workspace__header {
  gap: .5rem;
}

.workspace__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.workspace__title-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.workspace__version-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.workspace__title-main h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 200;
}

.breadcrumb--inline {
  margin-top: 0.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.75rem;
}

.workspace__version-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  position: relative;
}

.version-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  font-size: 0.65rem;
}

.version-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.workspace__header h2 {
  margin: 0;
  font-size: 1rem;
}

.workspace__header .hint {
  margin-top: 0.25rem;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.review-status--inline {
  margin-left: 0.35rem;
  font-size: 0.6rem;
  padding: 0.1rem 0.5rem;
}

.badge {
  border-radius: 999px;
  padding: 0.25rem 0.25rem;
  font-size: 0.3rem;
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  background-color: var(--bg);
}

.player-wrapper {
  border-radius: 10px 10px 0px 0px;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  flex: 1;
  min-height: 0px;
}

.player-wrapper video {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  object-fit: contain;
  background: var(--bg);
}

.annotation-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.annotation-layer.hidden {
  display: none;
}

.annotation-layer--editing {
  pointer-events: auto;
  cursor: crosshair;
}

.comment-composer,
.share-comment-composer {
  position: relative;
}

.annotation-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5rem;
  background: rgba(16, 16, 16, 0.95);
  border-radius: 10px;
  padding: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  transform-origin: bottom center;
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.annotation-toolbar.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.annotation-toolbar:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.annotation-toolbar__colors {
  display: flex;
  gap: 0.35rem;
}

.annotation-color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--annotation-color, var(--primary));
  cursor: pointer;
  padding: 0;
}

.annotation-color.is-active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.annotation-toolbar__slider {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
}

.annotation-toolbar__slider input {
  accent-color: var(--primary);
}

.annotation-toolbar__actions {
  display: flex;
  gap: 0.35rem;
}

.player-placeholder {
  color: var(--muted);
  padding: 2rem;
  text-align: center;
  z-index: 1;
}

.player-controls-bar {
  margin-top: 0;
  background: var(--bg);
  border-radius: 0px 0px 10px 10px;
  padding: 0.1em .01em .2em .5em;
  position: sticky;
  bottom: 0px;
  z-index: 25;
}

.app-main--share .player-controls-bar {
  margin-top: 1rem;
}

.comment-timeline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
}

.comment-span-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
  opacity: 0;
  transition: opacity 120ms ease;
}

.comment-span-overlay.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.comment-span-selection {
  position: absolute;
  top: 50%;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(242, 235, 213, 0.7);
  pointer-events: none;
  opacity: 0;
}

.comment-span-overlay.is-visible .comment-span-selection.is-visible {
  opacity: 1;
}

.comment-span-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  cursor: ew-resize;
  opacity: 0;
  transition: transform 120ms ease, opacity 120ms ease, border-color 120ms ease;
}

.comment-span-overlay.is-visible .comment-span-handle {
  pointer-events: auto;
  opacity: 1;
}

.comment-span-handle:focus-visible,
.comment-span-handle:hover {
  outline: none;
  border-color: var(--primary);
  transform: translate(-50%, -50%) scale(1.05);
}

.comment-timeline__marker {
  position: absolute;
  top: 75%;
  transform: translate(-50%, 8px);
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.scrub-wrapper {
  position: relative;
  width: 100%;
}

.comment-timeline__markers {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.comment-timeline__ranges {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.comment-timeline__range {
  position: absolute;
  bottom: 0px;
  transform: translateY(0);
  height: 4px;
  border-radius: 999px;
  background: var(--color-hex-f2f0ef);
  pointer-events: auto;
  cursor: pointer;
  z-index: 8;
  transition: opacity 0.15s ease;
}

.comment-timeline__range:hover {
  opacity: 0.8;
}

.comment-timeline__range--active::before,
.comment-timeline__range--active::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 14px;
  top: -18px;
  background: var(--color-hex-f2f0ef);
  z-index: 10;
  opacity: 1;
  transition: opacity 0.2s ease;
  box-shadow: none;
}

.comment-timeline__range--active::before {
  left: 0;
}

.comment-timeline__range--active::after {
  right: 0;
}

.comment-timeline__range:hover {
  opacity: 0.8;
}

.comment-timeline__avatar {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-hex-111111);
  font-size: 0.55rem;
  font-weight: 200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.comment-timeline__avatar--timeline {
  width: 16px;
  height: 16px;
  font-size: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-hex-1a1d27);
}

.comment-timeline-tooltip {
  position: absolute;
  top: -3.2rem;
  left: 0;
  transform: translateX(-50%);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: rgba(9, 11, 16, 0.95);
  color: var(--theme-text-light);
  font-size: 0.7rem;
  line-height: 1.3;
  letter-spacing: var(--text-spacing);
  max-width: 220px;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
}

.comment-timeline-tooltip::after {
  content: '';
  position: absolute;
  bottom: -0.4rem;
  left: 50%;
  transform: translateX(-50%);
  border: 0.35rem solid transparent;
  border-top-color: rgba(9, 11, 16, 0.95);
}

.comment-timeline-tooltip.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.comment-timeline__marker::after {
  display: none;
}

.custom-controls {
  padding: 0.1rem 0.7rem 0.1rem;
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.custom-controls__top input[type='range'] {
  width: 100%;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  background: transparent;
  height: 28px;
}

.custom-controls__top input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right,
      var(--primary) 0,
      var(--primary) var(--scrub-progress, 0%),
      rgba(255, 255, 255, 0.12) var(--scrub-progress, 0%),
      rgba(255, 255, 255, 0.12) 100%);
  border: none;
  transform-origin: center;
  transition: transform 120ms ease;
  transform: scaleY(0.65);
}

.custom-controls__top input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  margin-top: -3px;
  transition: transform 120ms ease;
}
.custom-controls__top input[type='range']:hover::-webkit-slider-runnable-track {
  transform: scaleY(1);
}

.custom-controls__top input[type='range']:hover::-webkit-slider-thumb {
  transform: scale(1.5);
}

.custom-controls__top input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transform-origin: center;
  transition: transform 120ms ease;
  transform: scaleY(0.65);
}

.custom-controls__top input[type='range']::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
  transform-origin: center;
  transition: transform 120ms ease;
  transform: scaleY(0.65);
}

.custom-controls__top input[type='range']::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  transition: transform 120ms ease;
}
.custom-controls__top input[type='range']:hover::-moz-range-thumb {
  transform: scale(1.5);
}

.custom-controls__top input[type='range']:hover::-moz-range-track,
.custom-controls__top input[type='range']:hover::-moz-range-progress {
  transform: scaleY(1);
}

.custom-controls__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 20px;
}

.controls-left,
.controls-center,
.controls-right {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.controls-center {
  flex: 1;
  justify-content: center;
}

.controls-right {
  justify-content: flex-end;
}

.controls-center .control-divider,
.controls-center #player-duration,
.controls-center #share-duration,
.controls-center #player-time-display {
  display: none;
}

.controls-center #share-time-display {
  display: inline-flex;
}

.control-icon {
  color: var(--color-hex-f2f0ef);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  border: none;
  background: transparent;
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.control-icon:hover {
  opacity: 1;
  color: var(--theme-text-light);
}

.control-icon.control-toggle[aria-pressed='true'],
.control-icon.is-active {
  color: var(--primary);
  opacity: 1;
}

.control-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--theme-text-light);
  font-family: 'AberMono-Bold';
  padding-top: 2px;
}

.control-divider {
  color: rgba(255, 255, 255, 0.45);
}

.audio-gain {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--theme-text-light);
}

.audio-gain .readout {
  width: 56px;
  text-align: right;
  font-size: 12px;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
  display: none;
}

.audioBtn {
  width: 10%;
  min-width: 28px;
  aspect-ratio: 1 / 1;
  height: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  cursor: pointer;
  transition: transform 0.08s ease;
}

.audioBtn:hover,
.audioBtn:focus-visible {
  outline: none;
}

.audio-gain .audioIcon {
  display: block;
  width: 60%;
  height: 60%;
}

.audioIcon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.anchor {
  position: relative;
  width: 10px;
  height: 48px;
}

.barOverlay {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: calc(220px * 0.78);
  height: 36px;
  border-radius: 999px;
  touch-action: none;
  pointer-events: none;
}

.barOverlay.isOpen {
  pointer-events: auto;
}

.pill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  width: calc(220px * 0.78);
  height: 10px;
  border-radius: 999px;
  background: var(--color-hex-bababa);
  transition: transform 0.15s ease-out;
}

.barOverlay.isOpen .pill {
  transform: translateY(-50%) scaleX(1);
}

.audio-gain__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  pointer-events: none;
}

.knobHit {
  position: absolute;
  left: 0;
  top: calc(50% + 0px);
  width: 26px;
  height: 26px;
  transform: translate(var(--knobX, 0px), -50%);
  touch-action: none;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.knobHit.isOpen {
  pointer-events: auto;
  cursor: grab;
}

.audio-gain.dragging .knobHit.isOpen {
  cursor: grabbing;
}

.audio-gain.muted .knobHit {
  pointer-events: none;
}

.dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(var(--dotScale, 1));
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.dot.green {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

.dot.red {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14);
}

.audio-gain.muted .dot {
  --dotScale: 1;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

.audio-gain.unmuted .dot {
  --dotScale: 1.2;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

.control-select {
  background-color: transparent;
  border-radius: 999px;
  color: var(--theme-text-light);
  padding: 0.2rem 0.72rem;
  font-size: 0.8rem;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3l6 4 6-4' stroke='%23f5f6fb' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 12px;
  appearance: none;
}

.control-select--inline {
  background: transparent;
  border-radius: 999px;
  color: var(--color-hex-f2f0ef);
  padding: 0.2rem 0.9rem;
  font-size: 0.75rem;
  appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.control-select--inline option {
  color: var(--color-hex-111111);
}

#share-resolution {
  padding-left: 1.95rem;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='currentColor' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='3.2'/%3E%3Cpath d='M10 3.6v2.2M10 14.2v2.2M3.6 10h2.2M14.2 10h2.2M5.1 5.1l1.55 1.55M13.35 13.35l1.55 1.55M5.1 14.9l1.55-1.55M13.35 6.65l1.55-1.55'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3l6 4 6-4' stroke='%23f5f6fb' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: left 0.5rem center, right 0.65rem center;
  background-size: 16px, 9px 6px;
}

.control-icon--sound {
  border: none;
  background: transparent;
  pointer-events: auto;
}

.control-icon--sound svg {
  width: 20px;
  height: 20px;
  fill: var(--theme-text-light);
}

.player-version-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: flex-end;
}

.version-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.version-stack__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.version-list.version-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.version-list.version-list--inline .version-chip {
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
}

.version-stack__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.version-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.workspace__version-inline .version-list.version-list--dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 44px;
  flex-direction: column;
  max-height: 240px;
  overflow-y: auto;
  background: var(--panel-bg);
  border-radius: 8px;
  padding: 0.5rem;
  gap: 0.5rem;
  z-index: 10;
  min-width: 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.workspace__version-inline .version-list.version-list--dropdown.is-open {
  display: flex;
}

.unstack-version-list {
  flex-direction: column;
  flex-wrap: nowrap;
  width: 100%;
  gap: 0.75rem;
}

.unstack-version-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}

.unstack-version-option span {
  display: block;
}

.unstack-version-option small {
  color: var(--muted);
}

.unstack-version-option input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.unstack-version-option:hover {
  background: rgba(242, 201, 143, 0.1);
}

.unstack-version-option.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.unstack-version-option .badge {
  margin-left: auto;
}

.version-chip {
  border-radius: 5px;
  padding: 0.5rem 0.5rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.version-chip.active {
  background: rgba(242, 201, 143, 0.3);
}

.comments-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--theme-panel);
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  padding: .9em;
}

.comments__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.2rem;
  padding: 0.1rem 0 0;
  font-size: 0.68rem;
}

.comments__header-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.comments__header .eyebrow {
  font-size: 0.6rem;
  letter-spacing: var(--text-spacing);
  margin: 0;
}

.share-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface);
  border-radius: 10px;
  padding: 1rem;
}

.share-info__links-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.share-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.share-link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 10px;
  padding: 0.75rem;
}

.share-link span {
  display: block;
  font-size: 0.85rem;
  word-break: break-all;
}

.workspace-share-link__title {
  font-size: 0.85rem;
  font-weight: 200;
  margin: 0;
  color: var(--theme-text-light);
  word-break: break-word;
}

.share-link__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.share-link__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
}

.share-link__security {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  color: var(--muted);
}

.share-link__security.is-protected {
  color: var(--primary);
}

.share-link-password-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.share-link-password-form.hidden {
  display: none;
}

.share-link-password-form input {
  flex: 1;
  min-width: 160px;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
}



.comments-panel__stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
  max-height: 100%;
}

.comment {
  padding: 1rem 1.25rem 0.9rem;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  position: relative;
  overflow: visible;
  margin: 0;
}

.comment+.comment {
  margin-top: 0.5rem;
}

.comment--active,
.comment.is-active {
  box-shadow: 0 0 0 4px var(--primary);
}

.comment--reply {
  margin-left: 0;
  margin-top: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  padding: 0;
}

.comment--reply .comment__header {
  padding-top: 0.3rem;
}

.comment--reply .comment__meta-info {
  gap: 0.4rem;
}

.comment--reply .comment__body,
.comment--reply .comment__footer {
  margin-left: calc(28px + 0.4rem);
}

.comment+.comment--reply {
  margin-top: 0.15rem;
}

.comment--reply+.comment--reply {
  margin-top: 0.3rem;
}

.comment--reply::before {
  content: '';
  position: absolute;
  left: 18px;
  top: var(--reply-connector-top, 0px);
  height: var(--reply-connector-height, 0px);
  width: 1px;
  background: rgb(255, 255, 255);
  z-index: -1;
}

.comment--reply .comment__status-dot {
  display: none;
}

.comment--read .comment__status-dot {
  display: none;
}

.comment--reply .comment__avatar {
  width: 36px;
  height: 36px;
  font-size: 0.65rem;
  background: var(--theme-card);
  color: var(--theme-text-dark);
  position: relative;
  z-index: 1;
}

.comment--reply .comment__footer-meta .comment-read {
  opacity: 0.6;
}

.comment-thread {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-left: 0;
  padding-left: 0;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  margin-top: 0.75rem;
}

.comment-thread .comment {
  padding: 0;
  margin-left: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.comment-thread::before {
  content: none;
}

.comment-reply-form {
  margin-top: 0.4rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(10, 10, 16, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.comment-reply-form::before {
  content: none;
}

.comment-reply-form__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.2;
}

.comment-reply-input {
  width: 100%;
  padding-top: 2px;
  padding-bottom: 2px;
  line-height: 1.2;
  min-height: 20px;
  background: transparent;
  border: none;
  color: var(--theme-text-light);
  resize: none;
  font: inherit;
  line-height: 1.4;
  border-bottom-width: 0px;
  margin-bottom: 0;
}

.comment-reply-input:focus {
  outline: none;
}

.comment-reply-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.2rem;
  flex-wrap: wrap;
}

.comment-reply-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-send--inline {
  min-height: auto;
  padding: 0.35rem 0.75rem;
}

.comment__header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
}

.comment__meta-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.comment__header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.comment-filter {
  margin-left: 15.25rem;
  position: relative;
}

.comment-filter--dropdown {
  position: relative;
  display: inline-flex;
}

.comment-filter-trigger {
  align-items: center;
  gap: 0.25rem;
  border-radius: 5px;
  background: var(--transparent);
  color: var(--theme-text-dark);
  font-size: 0.6rem;
  letter-spacing: var(--text-spacing);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 2rem;
  height: 2rem;
  min-width: 0;
  min-height: 0;
}

.comment-filter-trigger:hover,
.comment-filter-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.comment-filter-trigger__icon {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
}

.comment-filter-trigger__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.comment-filter-trigger__label {
  font-size: 0.6rem;
  letter-spacing: var(--text-spacing);
}

.comment-filter-list {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.4rem 0.5rem;
  background: var(--bg);
  border-radius: 8px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  min-width: 140px;
  z-index: 20;
}

.comment-filter-list.is-open {
  display: flex;
}

.comment-filter-option {
  background: transparent;
  border: none;
  color: var(--theme-text-light);
  text-align: left;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: var(--text-spacing);
  text-transform: uppercase;
}

.comment-filter-option:hover,
.comment-filter-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.comment-filter-option.is-active {
  color: var(--primary);
}

.comment__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(242, 201, 143, 0.5);
  margin-right: 0.4rem;
}

.comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--theme-card);
  color: var(--theme-text-dark);
  font-size: 0.65rem;
  font-weight: 200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment__author span {
  text-transform: none;
}

.comment__author small {
  display: inline-flex;
  margin-left: 0.35rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.6rem;
}

.comment__author {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1.2;
}

.comment__header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.comment-time {
  border: none;
  border-radius: 2px;
  padding: 0.05rem 0.35rem;
  padding-top: .2rem;
  padding-left: .4rem;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.6rem;
  font-weight: 200;
  font-family: 'AberMono-Bold';
}

.comment-time--inline {
  background: transparent;
  padding: 0;
  color: var(--primary);
}

.comment__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.comment__body,
.comment__footer {
  margin-left: calc(36px + 0.5rem);
}

.comment__body p {
  margin: 0;
  flex: 1 1 auto;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.comment__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  color: var(--muted);
}

.comment__footer-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.comment__footer-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.comment.is-hovered .comment__footer-meta {
  opacity: 1;
  transform: translateY(0);
}

.comment-read {
  font-size: 0.5rem;
  letter-spacing: var(--text-spacing);
  text-transform: uppercase;
}

.comment-action {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  cursor: pointer;
}

.comment-action[disabled],
.comment-action[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
}

.comment-action--edit {
  color: var(--primary);
}

.comment__meta-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.comment-edit-form {
  width: 100%;
  margin-top: 0.25rem;
}

.comment-edit-input {
  min-height: 3.5rem;
}

.comment-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.comment-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.5rem 0;
  gap: 0.5rem;
}

.comment-timestamp {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  color: var(--muted);
  font-family: 'AberMono-Bold';
  padding-top: 1px;
}

.comment-tools input[type='checkbox'] {
  margin-right: 0.35rem;
  pointer-events: none;
}

.annotation-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.annotation-actions .hint {
  font-size: 0.6rem;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15em;
  border-radius: 0.2em;
  background: var(--surface-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  font-size: .7rem;
  margin-left: 12px;
  margin-right: 12px;
}

.toggle-switch input {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.toggle-switch__slider {
  position: relative;
  display: flex;
  align-items: center;
  width: 4em;
  height: 1.6em;
  border-radius: 0.1em;
  background-color: var(--color-hex-1a1d27);
  box-shadow: inset 0 0 0.1em rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.toggle-switch__slider::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 100%;
  left: 0;
  transition: left 0.3s ease, transform 0.3s ease;
}

.toggle-switch__slider::after {
  content: '';
  position: absolute;
  left: 0.2em;
  width: 1.8em;
  height: 1.2em;
  border-radius: 0.1em;
  background: var(--color-hex-f2f0ef);
  box-shadow: 0 0 0.2em rgba(255, 255, 255, 0.3);
  transition: left 0.3s ease;
}

.toggle-switch input:checked+.toggle-switch__slider::before {
  left: 50%;
  transform: scaleX(1.1);
}

.toggle-switch input:checked+.toggle-switch__slider::after {
  left: 2em;
}

.toggle-switch input:checked+.toggle-switch__slider {
  background-color: var(--color-hex-1a1d27);
}

.comment-timestamp-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.comment-timestamp-indicator span {
  font-size: 0.65rem;
  white-space: nowrap;
  letter-spacing: var(--text-spacing);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'AberMono-Bold';
  padding-top: 1px;
}

.comment-form--disabled textarea,
.comment-form--disabled button,
.comment-form--disabled input,
.comment-form--disabled .toggle-switch {
  pointer-events: none;
}

.comment-form--disabled .share-user-menu,
.comment-form--disabled .share-user-trigger,
.comment-form--disabled .share-user-popover,
.comment-form--disabled .share-user-action {
  pointer-events: auto;
}

.comment-composer {
  position: relative;
}

.comment-composer__inner {
  background: var(--bg);
  border-radius: 10px;
  padding: .5rem .5rem .5rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.65);
}

.comment-composer__body {
  position: relative;
  flex: 1;
  min-height: 28px;
  color: var(--theme-text-light);
}

.comment-input {
  width: 100%;
  min-height: 28px;
  line-height: 1.4;
  max-height: 220px;
  background: transparent;
  border: none;
  color: var(--theme-text-light);
  font: inherit;
  font-size: .9rem;
  resize: none;
  outline: none;
  overflow-y: auto;
  padding: 0rem .4rem;
  box-sizing: border-box;
}

.comment-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.comment-composer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
}

.comment-span {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.comment-span-panel {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 0.35rem 0.55rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.9);
}
.comment-span-panel__label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.comment-controls--right {
  margin-left: auto;
}

#annotation-toggle svg {
  display: block;
}

#share-annotation-toggle svg {
  width: 10px;
  height: 10px;
  display: block;
}

#attachment-toggle svg {
  width: 10px;
  height: 10px;
  display: block;
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem;
  margin-top: 0.4rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: rgba(249, 249, 246, 0.9);
}

.attachment-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-remove {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-size: 0.85rem;
}

.attachment-remove:hover,
.attachment-remove:focus {
  background: rgba(255, 255, 255, 0.12);
}

.comment-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.comment-attachment {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.75rem;
  transition: background 0.2s ease;
}

.comment-attachment:hover,
.comment-attachment:focus {
  background: rgba(255, 255, 255, 0.18);
}

.comment-send {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: var(--color-hex-f2f0ef);
  color: var(--theme-text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.45);
  transition: transform 0.1s ease, box-shadow 0.12s ease;
}

.comment-send svg {
  width: 18px;
  height: 18px;
}

.comment-send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.55);
}

.comment-send:active:not(:disabled) {
  transform: translateY(0.5px) scale(0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.comment-send:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.comment-footer__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comment-form--threaded {
  margin-left: 3rem;
  margin-top: 0.75rem;
}

.comment-form--threaded .comment-composer__inner {
  background: rgba(15, 15, 23, 0.95);
}

.comment-reply-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(242, 201, 143, 0.15);
  color: var(--primary);
  font-size: 0.7rem;
  letter-spacing: var(--text-spacing);
  text-transform: uppercase;
}

.comment-reply-cancel {
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 200;
}

.comment-annotation {
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  background: transparent;
  color: inherit;
  font-size: 0.55rem;
  letter-spacing: var(--text-spacing);
  text-transform: uppercase;
  cursor: pointer;
}

.comment-annotation.active {
  color: var(--primary);
}

.comment-annotation-preview {
  margin-top: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px dashed rgba(242, 201, 143, 0.35);
  background: rgba(242, 201, 143, 0.12);
  font-size: 0.7rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.comment-annotation-label {
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  font-size: 0.6rem;
}

.comment-annotation-status {
  font-size: 0.65rem;
  color: var(--muted);
}

.comment--active {}

.comment-delete {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.2rem;
  line-height: 1;
}

.comment-delete:hover {
  color: var(--danger);
}

.comment-icon-button {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.comment-icon-button:hover {
  color: var(--theme-warning);
}

.comment-complete-container {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  transition: transform 0.2s ease;
}

.comment-complete-container:hover {
  transform: scale(1.05);
}

.comment-complete-container.is-complete {
  transform: scale(1.05);
}

.comment-complete-container svg {
  overflow: visible;
  width: 16px;
  height: 16px;
}

.comment-complete-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease, stroke 0.2s ease;
  stroke-dasharray: 241 9999999;
  stroke-dashoffset: 0;
}

.comment-complete-container.is-complete .comment-complete-path {
  stroke: #1f7d4c;
  stroke-dasharray: 70.5096664428711 9999999;
  stroke-dashoffset: -262.2723388671875;
}

.comment-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.comment-icon--trash::before,
.comment-icon--trash::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
  border-radius: 2px;
}

.comment-icon--trash::before {
  top: 1px;
  width: 12px;
  height: 3px;
  border-radius: 2px;
}

.comment-icon--trash::after {
  bottom: 1px;
  width: 10px;
  height: 9px;
  border-radius: 1px 1px 3px 3px;
}

.portal-icon-colored {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--portal-icon-color, currentColor);
}

.portal-icon-colored svg,
.portal-icon-colored img {
  display: block;
  width: 100%;
  height: 100%;
}

.portal-icon-colored svg path,
.portal-icon-colored svg circle,
.portal-icon-colored svg rect,
.portal-icon-colored svg polygon,
.portal-icon-colored svg line,
.portal-icon-colored svg g,
.portal-icon-colored svg polyline {
  fill: currentColor !important;
}

[data-icon] {
  width: var(--portal-icon-size, 20px);
  height: var(--portal-icon-size, 20px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-icon] svg {
  width: 100%;
  height: 100%;
}

/* Share view */

.app-main--share {
  width: 100%;
  margin: 0 auto;
  height: 100vh;
  min-height: 0;
  padding: 0rem 0;
}

.share-detail-view {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.share-detail-layout {
  grid-template-columns: minmax(0, 2fr) 460px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.share-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.share-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 3%;
  margin-top: 2%;
}

.share-password-gate {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 200;
}

.share-password-card {
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
}

.share-password-card h2 {
  margin: 0.25rem 0 0.5rem;
}

.share-password-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.share-password-form input {
  width: 100%;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
}

.share-password-form button {
  width: 100%;
}

.share-brand__logo {
  width: 23px;
  height: 23px;
  display: inline-block;
  background-color: var(--theme-dark-text, #111);
  -webkit-mask: url('../icons/04.svg') center/contain no-repeat;
  mask: url('../icons/04.svg') center/contain no-repeat;
}

.share-detail-meta {

  margin-right: 3%;
  margin-top: 1.5%;
}

.share-detail-meta h1 {
  margin: 0;
  font-size: 15px;
}

.share-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-user-trigger {
  width: 28px;
  height: 20.96px;
  border-radius: 2px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms ease;
  padding: 0;
  color: var(--theme-text-dark);
}

.share-user-trigger:hover,
.share-user-trigger:focus-visible,
.share-user-trigger.is-active {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.share-user-avatar {
  width: 28px;
  height: 20.96px;
  border-radius: 2px;
  background: var(--color-hex-f2f0ef);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 200;
  font-size: .65rem;
  text-transform: uppercase;
}

.share-user-popover {
  position: absolute;
  top: calc(100% + -10.35rem);
  left: 0;
  width: 220px;
  background: var(--panel-bg);
  border-radius: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 40;
}

.share-user-popover__header span {
  font-size: 0.95rem;
}

.share-user-popover__eyebrow {
  margin-bottom: 0.35rem;
}

.share-user-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.share-user-menu {
  position: relative;
}

.share-user-prompt {
  position: absolute;
  left: 8px;
  top: 19px;
  background: var(--color-hex-505050);
  color: var(--theme-text-light);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 0.65rem;
  letter-spacing: var(--text-spacing);
  text-transform: uppercase;
  display: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.share-user-prompt::after {
  content: '';
  position: absolute;
  left: 16px;
  bottom: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--color-hex-505050);
}

.share-user-prompt.is-visible {
  display: flex;
  justify-content: center;
}

.share-user-action {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  text-align: left;
  transition: background 150ms ease;
}

.share-user-action:hover,
.share-user-action:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.share-user-action--logout {
  color: var(--danger);
  background: rgba(255, 138, 138, 0.08);
}

.share-user-action--logout:hover,
.share-user-action--logout:focus-visible {
  background: rgba(255, 138, 138, 0.2);
}

.share-comment-composer .comment-input {
  padding-right: 0;
}

.share-description-inline {
  color: var(--muted);
  margin: 0;
}

.share-description,
.share-description-inline {
  color: var(--muted);
  line-height: 1.5;
}

.share-description {
  max-width: 720px;
}

/* Hide video descriptions across main and share views */
#active-description,
.share-info__description,
.share-description,
.share-description-inline {
  display: none !important;
}

.share-workspace .workspace__header {
  margin-bottom: 0.5rem;
}

.share-comments-panel {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 1rem;
}

.badge--ghost {
  background: transparent;
  color: inherit;
}

.share-panel-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background: rgba(246, 246, 249, 0.06);
  border-radius: 999px;
  padding: 0.12rem;
}

.share-panel-toggle__btn {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--theme-text-dark);
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  font-size: 0.55rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.share-panel-toggle__btn.is-active {
  background: rgba(8, 8, 10, 0.9);
  color: var(--theme-text-light);
}

.share-panel-view {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.share-panel-view[data-share-panel='comments'] {
  min-height: 0;
  flex: 1;
}

.share-panel-view[data-share-panel='comments'] .comments-panel__stream {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.share-panel-view[data-share-panel='comments'] .comments-panel__composer {
  padding-top: 1rem;
  position: sticky;
  bottom: 0;
  margin-top: auto;
}

.share-info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(18, 18, 22, 0.8);
}

.share-info__item>p {
  margin: 0 0 0.35rem;
}

.share-info__item span {
  font-size: 0.95rem;
}

.share-info__description {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.share-info__description .share-description {
  margin: 0;
}

.share-info__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-info__links .share-links {
  width: 100%;
}



.invite-links,
.modal-invite-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invite-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invite-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px dashed var(--accent-strong);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  gap: 0.75rem;
}

.invite-row__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.invite-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invite-form.disabled {
  opacity: 0.5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 900;
}

.modal-backdrop.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6vh;
  z-index: 901;
}

.modal.hidden {
  display: none;
}

.modal__content {
  width: min(480px, 90vw);
  background: var(--panel-bg);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modal__invite .input-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal__invite input,
.modal__invite select {
  flex: 1;
}

.modal__invite button {
  align-self: flex-start;
}

.modal__members {
  max-height: 320px;
  overflow-y: auto;
}

.modal-open {
  overflow: hidden;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

.confirm-modal .modal__content {
  width: min(420px, 90vw);
  padding-bottom: 0.75rem;
  color: var(--theme-text-dark)
}

.confirm-modal__message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.confirm-modal__confirm {
  background: rgba(255, 255, 255, 0.08);
  color: var(--danger);
}

.confirm-modal__confirm--danger {
  background: rgba(255, 0, 60, 0.15);
  color: var(--danger);
}

.modal__content--wide {
  width: min(720px, 95vw);
}

.share-link-modal__content {
  width: min(380px, 92vw);
  gap: 0.5rem;
  font-size: 0.9rem;
}

.share-link-modal__header {
  align-items: flex-start;
  letter-spacing: var(--text-spacing);
  color: var(--theme-text-dark)
}

.share-link-modal__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-link-modal__title h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: var(--text-spacing);
}

.share-link-modal__title-input {
  flex: 1;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  letter-spacing: var(--text-spacing);
  font-weight: 200;
  padding: 0;
  border-bottom: 1px solid transparent;
}

.share-link-modal__title-input:focus {
  outline: none;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.share-link-modal__title-edit {
  padding: 0.1rem 0.35rem;
}

.share-link-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--theme-text-dark);
}

.share-link-modal__link-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-link-modal__link-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--theme-text-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--theme-text-dark)
}

.share-link-modal__link-icon {
  font-size: 0.85rem;
}

.share-link-modal__link-input input {
  flex: 1;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 200;
}

.share-link-modal__link-input input:focus {
  outline: none;
}

.share-link-modal__recipient {
  width: 100%;
  border-radius: 10px;
  border: 1px soild var(--theme-text-dark);
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  letter-spacing: var(--text-spacing);
  color: var(--theme-text-dark);
}

.share-link-modal__passphrase {
  width: 100%;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
}

.share-link-modal__passphrase-input {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 200;
}

.share-link-modal__passphrase-input:focus {
  outline: none;
}

.share-link-modal__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.02);
  gap: 0.5rem;
  border: 1px solid var(--theme-text-dark);
}

.share-link-modal__option small {
  display: block;
  color: var(--theme-text-dark);
  font-family: 'AberMono-Bold';
  letter-spacing: var(--text-spacing);
  text-transform: uppercase;
  font-size: 0.6rem;
}

.share-link-modal__option--link {
  width: 100%;
  justify-content: space-between;
  border-style: dashed;
  background: transparent;
  cursor: pointer;
  color: var(--theme-text-dark)
}

.share-link-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.share-link-modal__actions button {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
}

.share-link-modal__done {
  background: var(--primary);
  color: var(--theme-text-dark);
}

.search-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
}

.search-modal__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(12, 12, 18, 0.85);
  letter-spacing: var(--text-spacing);
}

.search-modal__input:focus {
  outline: none;
  box-shadow: none;
  background: none;
}

.search-results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-radius: 10px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-result {
  border: none;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  text-align: left;
  cursor: pointer;
}

.search-result span {
  display: block;
  font-size: 0.95rem;
  letter-spacing: var(--text-spacing);
}

.search-result small {
  color: var(--muted);
}

.notification-list,
.upload-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notification-item,
.upload-item {
  border-radius: 10px;
  border: 1px solid var(--theme-text-dark);
  padding: 0.75rem 1rem;
  background: rgba(10, 10, 14, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  letter-spacing: var(--text-spacing)
}

.notification-item__header,
.upload-item__header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: flex-start;
}

.notification-item__header span,
.upload-item__header span {
  font-size: 0.9rem;
  font-weight: 200;
}

.notification-item__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.notification-item__folder,
.upload-item__folder {
  color: var(--muted);
  font-size: 0.75rem;
}

.notification-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.upload-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.upload-item__file,
.upload-item__status {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  color: var(--theme-text-light);
}

.upload-item__meta small {
  color: var(--theme-text-light);
}

.notification-item span,
.upload-item span {
  font-size: 0.9rem;
}

.notification-item small,
.upload-item small {
  color: var(--muted);
}

.video-list.video-list--compact .media-group__grid--assets .video-card,
.video-list.video-list--compact .media-group__grid--assets .pending {
  flex: 0 0 180px;
  width: 180px;
  height: 160px;
}

.video-list.video-list--compact .media-group__grid {
  gap: 0.5rem;
}

.share-auth-modal {
  align-items: center;
  padding-top: 0;
}

.share-auth-card {
  width: min(420px, 90vw);
  background: var(--panel-bg);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.share-auth-card__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.share-auth-tabs {
  justify-content: center;
  margin-bottom: 1.25rem;
}

.share-auth-tab {
  min-width: 110px;
}

.share-auth-tab.is-active .radio-label {
  color: var(--primary);
}

.share-auth-pane.hidden {
  display: none;
}

.share-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.share-auth-form label {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.share-auth-form input {
  color: inherit;
  font: inherit;
}

.share-auth-form input:focus {
  outline: none;
}

.share-auth-submit {
  margin-top: 0.35rem;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: var(--theme-text-dark);
  font-weight: 200;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background 120ms ease;
}

.share-auth-submit:hover {
  background: var(--accent-strong);
}

.share-auth-submit.auth-button {
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: inherit;
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

.form-error.hidden {
  display: none;
}

.hint.inline {
  display: inline;
  font-size: 0.75rem;
  color: var(--muted);
}

.invite-links__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* before Responsive */




/* Responsive */
@media (max-width: 600px) {
  .status-pill {
    width: 100%;
    justify-content: center;
  }
}


@media (max-width: 900px) {
  .dashboard {
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    gap: 0.75rem;
  }

  .comment-filter {
    margin-left: 10.5rem;
  }

  .app-main--share .player-controls-bar {
    margin-top: 0rem;
  }

  .player-controls-bar {
    margin-top: 0rem;
    border-top: 0px;
    border-radius: 18px 18px 0 0;
    padding: 0rem 0rem 0rem;
    position: sticky;
    bottom: 0;
    z-index: 25;
  }

  .custom-controls__bottom {
    gap: 0.35rem;
    padding-top: 12px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }

  .top-bar__controls {
    width: 100%;
    justify-content: space-between;
  }

  .top-menu {
    right: 0.5rem;
    width: calc(100% - 1rem);
  }

  .card,
  .auth-card {
    padding: .25rem;
  }

  .comments__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;

  }

  .share-shell {
    width: calc(100% - 1.5rem);
    padding: 1.5rem 0 2rem;
  }

  .share-layout {
    grid-template-columns: 1fr;
    gap: 0rem;
  }

  .share-topbar {
    flex-direction: column;
  }

  .share-detail-layout {
    grid-template-columns: 1fr;
    gap: 0rem;
  }

  .share-detail-view {
    padding: 0 0rem 0rem;
  }

  .share-detail-header {
    margin-bottom: 0rem;
    gap: 0rem;
    flex-wrap: nowrap;
  }

  .share-detail-meta h1 {
    font-size: 10px;
  }

  .share-workspace,
  .share-comments-panel {
    border-radius: 16px;
  }

  .share-panel-view[data-share-panel='comments'] {
    gap: 1rem;
  }

  .share-panel-view[data-share-panel='comments'] .comments-panel__composer {
    padding: 0.5rem 0;
    margin: 0;
  }

  #share-version-toggle-btn,
  #share-download-btn,
  button[data-download-option] {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    min-width: 0;
  }
}

.share-folder-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--panel-bg);
  color: var(--theme-text-dark)
}

.share-folder-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-folder-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.share-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.share-folder-card {
  border-radius: 12px;
  padding: 0.75rem;
  background: var(--theme-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  min-height: 220px;
  transition: border-radius 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.share-folder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.35);
}

.share-folder-card__preview {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.share-folder-card__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.5));
}

.share-folder-card--folder .share-folder-card__preview::after {
  background: linear-gradient(180deg, rgba(5, 30, 75, 0.35), rgba(5, 30, 75, 0.65));
}

.share-folder-card__preview img:hover,
.video-card__preview img:hover,
.media-card__preview img:hover {
  filter: grayscale(0.05) contrast(1.15);
}

.share-folder-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--theme-text-light);
  line-height: 1.2;
  min-height: 2.4em;
}

.share-folder-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--theme-text-light);
  line-height: 1;
  text-transform: capitalize;
}

.share-folder-card__meta span {
  opacity: 0.85;
}
