/* ── Share File Modal ──────────────────────────────────────────── */
#share-modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
}
#share-modal.show { display: flex; }

.share-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .8);
}
.share-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.share-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 800;
}
.share-close {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
}
.share-close:hover { color: var(--text); }

.share-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.share-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}

/* ── Files ── */
.share-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.share-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  transition: border-color .15s;
}
.share-file:hover { border-color: var(--border2); }
.share-file.selected {
  border-color: var(--green);
  background: var(--green-dim);
}
/* .share-file risk variants removed — all files render neutral */

.file-icon { font-size: 18px; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta {
  font-size: 9px;
  color: var(--text3);
  margin-top: 2px;
}
/* .file-risk badges removed — no pre-action risk labels */

/* ── Recipients ── */
.share-recipients {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.share-recipient {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  transition: border-color .15s;
}
.share-recipient:hover    { border-color: var(--border2); }
.share-recipient.selected { border-color: var(--blue); background: var(--blue-dim); }

.recip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.recip-name { font-size: 11px; font-weight: 700; color: var(--text); }
.recip-role { font-size: 9px; color: var(--text3); }

/* ── Preview ── */
.share-preview-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 10px;
  color: var(--text3);
  line-height: 1.6;
  min-height: 44px;
}
/* preview color variants removed — neutral preview only */

/* ── Actions ── */
.share-actions {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
.share-send {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .15s;
}
/* send button color variants removed — neutral button */
.share-send { background: var(--green2); color: #000; }
.share-send:hover { opacity: .85; }

.share-cancel {
  padding: 9px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--border2);
  background: var(--surface3);
  color: var(--text2);
}
.share-cancel:hover { color: var(--text); }

/* ── Screen Share Modal ───────────────────────────────────────── */
#screenshare-modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
}
#screenshare-modal.show { display: flex; }

.ss-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  width: 520px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .8);
}
.ss-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ss-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 800;
}
.ss-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ss-preview {
  border-radius: 8px;
  border: 2px solid var(--border);
  overflow: hidden;
  position: relative;
}
.ss-screen {
  background: var(--bg);
  padding: 10px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  min-height: 120px;
}
.ss-win-thumb {
  border-radius: 6px;
  border: 1px solid var(--border2);
  padding: 6px 8px;
  font-size: 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--surface2);
}
.ss-win-thumb .win-label {
  font-weight: 700;
  font-size: 8px;
  color: var(--text3);
  text-transform: uppercase;
}
.ss-win-thumb .win-content {
  font-size: 9px;
  color: var(--text2);
  line-height: 1.4;
}
/* .ss-win-thumb.exposed, .ss-warning, .ss-ok removed — neutral display */
.ss-info {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 10px;
  color: var(--text2);
  line-height: 1.5;
}
.ss-recipients {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ss-actions {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
