.surface {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
}
.glow-card {
  position: relative;
  overflow: hidden;
}
.glow-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(61,125,255,0.18), rgba(56,200,255,0.08), transparent 58%);
  pointer-events: none;
}
.ghost-button,
.primary-button,
.secondary-button,
.icon-button {
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.primary-button {
  padding: 14px 18px;
  color: #031120;
  background: linear-gradient(135deg, #7fe4ff, #5b8fff 55%, #7ec0ff);
  box-shadow: 0 16px 30px rgba(31, 113, 255, 0.34);
  border-color: rgba(160, 223, 255, 0.65);
  font-weight: 700;
}
.secondary-button, .ghost-button {
  padding: 14px 18px;
  color: var(--text);
  background: rgba(12, 21, 44, 0.76);
}
.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  background: rgba(12, 20, 41, 0.85);
  color: var(--text-soft);
}
.ghost-button.compact,
.primary-button.compact,
.secondary-button.compact {
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}
.icon-button.active {
  background: rgba(13, 31, 66, 0.96);
  border-color: var(--line-strong);
  color: var(--text);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metric-card {
  padding: 18px;
  min-height: 140px;
}
.metric-label {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.metric-value {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.2;
  word-break: break-word;
}
.metric-meta {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
}
.split-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.workspace-shell .primary-button,
.workspace-shell .secondary-button,
.workspace-shell .ghost-button {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
}
.workspace-shell .icon-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.workspace-shell .status-pill,
.workspace-shell .batch-pill,
.workspace-shell .kind-pill {
  min-height: 24px;
  padding: 4px 9px;
  font-size: 10px;
}
.shell-panel { padding: 18px; }
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel-title h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.panel-subtle {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.status-pill,
.batch-pill,
.kind-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 18, 37, 0.76);
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.status-pill::before,
.batch-pill::before,
.kind-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.kind-pill.dir::before { background: linear-gradient(135deg, #7fe4ff, #3d7dff); }
.kind-pill.pdf::before { background: linear-gradient(135deg, #ff6f91, #ff9248); }
.kind-pill.media::before { background: linear-gradient(135deg, #7affb7, #1cb7ff); }
.kind-pill.sheet::before { background: linear-gradient(135deg, #b3ff78, #00b86b); }
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.filter-toolbar,
.bulk-toolbar {
  margin-top: -4px;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.input-shell,
.select-shell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(10, 17, 35, 0.84);
  border-radius: 14px;
}
.input-shell input,
.select-shell select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
}
.filter-select-shell span,
.filter-number-shell span {
  color: var(--text-dim);
  font-size: 12px;
  white-space: nowrap;
}
.filter-select-shell {
  min-width: 180px;
}
.filter-number-shell {
  min-width: 148px;
}
.filter-number-shell input {
  text-align: right;
}
.bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.file-card {
  padding: 14px;
  min-height: 174px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: rgba(82, 117, 191, 0.18);
}
.file-card.selected {
  border-color: rgba(111, 183, 255, 0.78);
  box-shadow: 0 0 0 1px rgba(111, 183, 255, 0.35), var(--shadow-lg);
}
.file-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.file-card-top-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.file-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(80, 149, 255, 0.22), rgba(56, 200, 255, 0.08));
  border: 1px solid rgba(108, 170, 255, 0.4);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 12px;
}
.file-name {
  margin: 12px 0 6px;
  font-weight: 600;
  line-height: 1.45;
}
.file-meta {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.65;
}
.share-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text-soft);
}
.share-trail-separator {
  color: var(--text-dim);
  font-size: 12px;
}
.share-browser-card .inline-actions {
  margin-top: 14px;
  justify-content: flex-start;
}
.breadcrumb-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.breadcrumb-button.current {
  color: var(--text);
  font-weight: 600;
}
.breadcrumb-button:hover {
  color: var(--text);
}
.file-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.file-table th,
.file-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(82, 117, 191, 0.16);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-table th {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.file-table tbody tr {
  height: 48px;
}
.file-table tbody tr.selected {
  background: rgba(17, 36, 73, 0.55);
}
.selection-column {
  width: 44px;
}
.file-row-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.file-row-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.file-row-title,
.file-row-detail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-row-title {
  font-weight: 600;
  flex: 1 1 auto;
}
.file-row-detail {
  color: var(--text-dim);
  font-size: 12px;
  flex: 0 1 auto;
}
.file-row-separator {
  color: var(--text-dim);
  flex: 0 0 auto;
}
.selection-toggle {
  position: relative;
  display: inline-flex;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.selection-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.selection-toggle span {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1px solid rgba(106, 149, 255, 0.38);
  background: rgba(10, 17, 35, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.selection-toggle input:checked + span {
  border-color: rgba(136, 204, 255, 0.78);
  background: linear-gradient(135deg, rgba(54, 152, 255, 0.9), rgba(95, 135, 255, 0.95));
  box-shadow: 0 0 0 1px rgba(111, 183, 255, 0.22), 0 12px 24px rgba(44, 112, 255, 0.22);
}
.selection-toggle input:checked + span::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #02101d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.file-table .inline-actions,
.file-card .inline-actions {
  flex-wrap: wrap;
}
.file-table .inline-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}
.file-table .ghost-button.compact,
.file-table .secondary-button.compact,
.file-table .primary-button.compact {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11px;
}
.file-table .file-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  flex: 0 0 auto;
  font-size: 11px;
}
.file-table td:nth-child(2) {
  width: auto;
}
.file-table td:nth-child(3),
.file-table th:nth-child(3) {
  width: 84px;
}
.file-table td:nth-child(4),
.file-table th:nth-child(4) {
  width: 72px;
}
.file-table td:nth-child(5),
.file-table th:nth-child(5) {
  width: 112px;
}
.file-table td:nth-child(6),
.file-table th:nth-child(6) {
  width: 72px;
}
.file-table .kind-pill {
  max-width: 100%;
}
.telemetry-stack,
.nav-stack,
.card-stack {
  display: grid;
  gap: 14px;
}
.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--text-soft);
  background: transparent;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.nav-item.active,
.nav-item:hover {
  background: rgba(13, 24, 48, 0.92);
  border-color: var(--line);
  color: var(--text);
}
.telemetry-card { padding: 16px; }
.telemetry-card h3 {
  margin: 10px 0 0;
  font-size: 16px;
}
.telemetry-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.telemetry-stat strong {
  font-family: var(--font-heading);
  font-size: 26px;
}
.telemetry-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 13px;
  gap: 12px;
  min-width: 0;
}
.telemetry-row span:first-child,
.telemetry-row span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.telemetry-row span:first-child {
  flex: 1 1 auto;
}
.telemetry-row span:last-child {
  flex: 0 1 48%;
  text-align: right;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 16, 0.72);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(560px, calc(100% - 24px));
  padding: 18px;
}
.modal.detail-modal {
  width: min(1180px, calc(100% - 24px));
}
.modal-header,
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.modal-header { margin-bottom: 18px; }
.modal-footer { margin-top: 22px; }
.modal-grid { display: grid; gap: 14px; }
.field-grid { display: grid; gap: 8px; }
.field-grid label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.field-grid input,
.field-grid select,
.field-grid textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(9, 15, 30, 0.92);
  color: var(--text);
  outline: none;
}
.field-grid textarea { min-height: 120px; padding: 14px; resize: vertical; }
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  display: none;
  z-index: 80;
}
.dropdown.open .dropdown-panel { display: block; }
.dropdown-item {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
  border-radius: 12px;
}
.dropdown-item:hover {
  background: rgba(17, 31, 63, 0.88);
  color: var(--text);
}
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  z-index: 100;
}
.toast {
  min-width: 280px;
  max-width: 360px;
  padding: 14px 16px;
}
.toast strong { display: block; margin-bottom: 4px; }
.empty-state {
  padding: 42px 28px;
  text-align: center;
}
.empty-state h4 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 20px;
}
.empty-state p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--text-soft);
  line-height: 1.7;
}
.empty-state p[data-inline-disclosure] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 16px;
  min-height: min(72vh, 820px);
}
.detail-preview-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 22px;
  min-width: 0;
}
.detail-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.detail-preview-head h3 {
  margin: 10px 0 0;
}
.detail-preview-kind {
  align-self: center;
}
.detail-preview-shell {
  min-height: 420px;
  border-radius: 20px;
  border: 1px solid rgba(84, 134, 255, 0.16);
  background:
    radial-gradient(circle at top, rgba(70, 132, 255, 0.12), transparent 46%),
    rgba(5, 10, 20, 0.94);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.detail-preview-shell > * {
  width: 100%;
  height: 100%;
}
.detail-preview-empty {
  padding: 22px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-soft);
}
.detail-preview-empty strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}
.detail-preview-empty p {
  margin: 0;
  max-width: 320px;
  line-height: 1.6;
}
.detail-preview-meta {
  display: grid;
  gap: 8px;
}
.detail-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(3, 8, 17, 0.9);
}
.detail-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(255, 255, 255, 0.98);
}
.detail-preview-media {
  width: 100%;
  height: 100%;
  background: rgba(3, 8, 17, 0.94);
}
.detail-preview-audio-wrap {
  display: grid;
  place-items: center;
  padding: 26px;
}
.detail-preview-audio-wrap audio {
  width: min(100%, 520px);
}
.detail-preview-text {
  padding: 18px 20px;
  overflow: auto;
  color: #dbe7ff;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.detail-preview-text code,
.detail-preview-text pre {
  margin: 0;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
}
.detail-preview-markdown {
  padding: 18px 20px;
  overflow: auto;
  color: #dbe7ff;
  line-height: 1.75;
}
.detail-preview-markdown h1,
.detail-preview-markdown h2,
.detail-preview-markdown h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  line-height: 1.2;
}
.detail-preview-markdown p,
.detail-preview-markdown ul {
  margin: 0 0 12px;
}
.detail-preview-markdown code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  color: #a8d0ff;
}
.detail-info-pane {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
}
.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail-actions-card {
  padding: 22px;
}
.detail-actions-card h3 {
  margin: 10px 0 16px;
}
.detail-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.detail-actions-grid--single {
  grid-template-columns: 1fr;
}
.detail-actions-copy {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}
.detail-folder-display {
  color: var(--text);
}
.field-hint,
.detail-actions-copy,
.process-step span,
.settings-card p {
  min-width: 0;
}
.field-hint[data-inline-disclosure],
.detail-actions-copy[data-inline-disclosure],
.process-step span[data-inline-disclosure],
.settings-card p[data-inline-disclosure] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.inline-disclosure-text {
  min-width: 0;
  color: inherit;
}
.inline-disclosure.is-collapsed .inline-disclosure-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inline-disclosure.is-expanded .inline-disclosure-text {
  white-space: normal;
}
.inline-disclosure-toggle {
  flex: 0 0 auto;
  color: rgba(171, 194, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}
.inline-disclosure-toggle:hover {
  color: rgba(207, 222, 255, 0.94);
}
.field-hint,
.detail-actions-copy,
.process-step span,
.share-url,
.detail-share-url {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inline-disclosure.is-expanded.field-hint,
.inline-disclosure.is-expanded.detail-actions-copy,
.inline-disclosure.is-expanded.process-step span,
.inline-disclosure.is-expanded.empty-state p,
.inline-disclosure.is-expanded.workspace-copy {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.detail-actions-footer {
  margin-top: 18px;
}
.detail-share-card {
  padding: 22px;
}
.detail-share-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.detail-share-header h3 {
  margin: 10px 0 0;
}
.detail-share-list {
  display: grid;
  gap: 12px;
}
.detail-share-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(84, 134, 255, 0.18);
  background: rgba(9, 15, 30, 0.82);
}
.detail-share-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.detail-share-item-head strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
}
.detail-share-url {
  display: inline-block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 12px;
  max-width: 100%;
}
.detail-share-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.detail-share-controls--extended {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact-telemetry {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.telemetry-mini-stat {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(84, 134, 255, 0.16);
  background: rgba(7, 13, 26, 0.72);
}
.telemetry-mini-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  margin-top: 6px;
}
.compact-field-full {
  grid-column: 1 / -1;
}
.field-hint {
  margin: 6px 0 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.55;
}
.checkbox-field {
  display: flex;
  align-items: center;
}
.checkbox-shell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
}
.checkbox-shell input {
  width: 16px;
  height: 16px;
  accent-color: #69b8ff;
}
.share-access-panel {
  margin-bottom: 18px;
  padding: 22px;
}
.share-access-panel.hidden {
  display: none;
}
.share-access-panel h3 {
  margin: 10px 0 8px;
}
.share-access-form {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}
.share-access-panel .inline-actions {
  justify-content: flex-start;
}
.compact-field label {
  font-size: 11px;
}
.compact-empty {
  padding: 18px 16px;
}
.compact-empty h4 {
  font-size: 16px;
}
.compact-empty p {
  max-width: none;
  font-size: 13px;
}
.upload-progress-shell {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.upload-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.upload-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(9, 15, 30, 0.92);
  border: 1px solid rgba(84, 134, 255, 0.18);
  overflow: hidden;
}
.upload-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(67, 170, 255, 0.88), rgba(111, 131, 255, 0.96));
  box-shadow: 0 0 18px rgba(88, 163, 255, 0.28);
  transition: width 160ms ease;
}
.upload-progress-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}
.danger-button {
  border-color: rgba(255, 112, 145, 0.28);
  color: #ffd5df;
  background: rgba(58, 16, 30, 0.78);
}
.danger-button:hover {
  border-color: rgba(255, 132, 162, 0.5);
  background: rgba(78, 21, 40, 0.9);
}
.share-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.file-card,
[data-item-row] {
  position: relative;
}
.is-drag-source {
  opacity: 0.58;
}
.is-drop-target {
  box-shadow: 0 0 0 2px rgba(101, 167, 255, 0.62) inset, 0 0 22px rgba(61, 120, 255, 0.18);
}
.drop-root-target {
  transition: box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
}
.drop-root-target.is-drop-target {
  border-color: rgba(101, 167, 255, 0.68);
  color: #dff0ff;
}
.share-url {
  display: inline-block;
  max-width: 100%;
  text-align: right;
}
.auth-shell {
  display: grid;
  grid-template-columns: 1.1fr minmax(0, 460px);
  gap: 20px;
  align-items: center;
  min-height: 100vh;
  padding: 32px 0;
}
.hero-panel,
.auth-panel { padding: 30px; }
.auth-panel h1,
.hero-panel h1 { margin: 18px 0 10px; font-family: var(--font-heading); }
.auth-form { display: grid; gap: 14px; margin-top: 22px; }
.auth-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.oauth-actions {
  display: flex;
  margin-top: 18px;
}
.oauth-button {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.oauth-mark {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
}
.oauth-mark svg {
  width: 20px;
  height: 20px;
}
.auth-divider {
  position: relative;
  margin: 16px 0 8px;
  text-align: center;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98, 136, 219, 0.28), transparent);
}
.auth-divider span {
  position: relative;
  padding: 0 10px;
  background: var(--bg-panel);
}
.hero-metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hero-metric { padding: 16px; }
.hero-metric strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  margin-top: 12px;
}
@media (max-width: 1180px) {
  .split-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .telemetry-column { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .metric-grid,
  .hero-metrics,
  .auth-shell,
  .split-shell { grid-template-columns: 1fr; }
  .container { width: min(100% - 24px, 1240px); }
  .detail-layout { grid-template-columns: 1fr; min-height: auto; }
  .detail-preview-shell { min-height: 300px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-actions-grid { grid-template-columns: 1fr; }
  .detail-share-controls { grid-template-columns: 1fr; }
  .detail-share-controls--extended { grid-template-columns: 1fr; }
  .compact-telemetry { grid-template-columns: 1fr; }
  .detail-share-header {
    flex-direction: column;
    align-items: stretch;
  }
}


