/* Veritarc Files — page-specific styles for share.html + retrieve.html.
   Kept in an external file because the CSP is `style-src 'self'` (no inline
   <style> or style="" attributes). Reuses the theme CSS variables defined in
   styles.css so all themes apply. */

.files-main { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; }
.files-main.narrow { max-width: 560px; }
.files-main h1 { font-size: 22px; margin: 8px 0 4px; }
.files-main .lede { color: var(--text-dim); margin-bottom: 24px; }
.files-footer { margin-top: 32px; text-align: center; }

/* ── Share: drop zone + staging ── */
.drop-zone {
  border: 2px dashed var(--border); border-radius: var(--radius, 12px);
  background: var(--surface); padding: 32px 20px; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.drop-zone:hover, .drop-zone:focus-visible { border-color: var(--accent); }
.drop-zone.is-drop-target { border-color: var(--accent); background: var(--surface-2); }
.drop-zone__icon { font-size: 34px; }
.drop-zone__title { font-weight: 600; margin: 8px 0 2px; }
.drop-zone__hint { color: var(--text-dim); font-size: 13px; }
.drop-zone__btn {
  display: inline-block; margin-top: 12px; padding: 8px 16px;
  background: var(--accent); color: #fff; border-radius: 8px; font-weight: 600; cursor: pointer;
}
.drop-zone__btn:hover { background: var(--accent-hover); }

.staged { list-style: none; margin: 16px 0 0; padding: 0; }
.staged-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px;
}
.staged-item__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staged-item__size { color: var(--text-dim); font-size: 12px; }
.staged-item__remove { background: none; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer; line-height: 1; }
.staged-item__remove:hover { color: var(--danger, #ff5c5c); }
.staged-empty { color: var(--text-dim); font-size: 13px; margin-top: 12px; }

.start-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.btn-primary {
  padding: 11px 22px; background: var(--start, var(--accent)); color: #fff; border: none;
  border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.start-hint { color: var(--text-dim); font-size: 13px; }

/* ── Share: live code card + panels ── */
.code-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius, 12px); padding: 20px; text-align: center; margin-bottom: 18px;
}
.code-card__label { color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.code-card__code {
  font-family: var(--mono, ui-monospace, monospace); font-size: 40px; font-weight: 700;
  letter-spacing: .12em; margin: 6px 0 12px; user-select: all;
}
.code-card__actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.code-card__actions button {
  padding: 8px 14px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13px;
}
.code-card__actions button:hover { border-color: var(--accent); }
.code-card__actions button:disabled { opacity: .5; cursor: not-allowed; }
.share-link-row { margin-top: 12px; font-size: 12px; word-break: break-all; }
.share-link-row a { color: var(--accent); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 12px); padding: 14px 16px; margin-bottom: 16px; }
.panel h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin: 0 0 8px; }
.roster { list-style: none; margin: 0; padding: 0; }
.roster li { padding: 4px 0; }
.muted { color: var(--text-dim); font-size: 12px; }
#share-status { color: var(--text-dim); font-size: 13px; min-height: 18px; margin-top: 4px; }
.text-link { background: none; border: none; color: var(--text-dim); cursor: pointer; text-decoration: underline; font-size: 13px; padding: 0; }
.text-link:hover { color: var(--text); }

/* ── Retrieve: join card ── */
.join-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 12px); padding: 24px; }
.field-label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.code-input {
  width: 100%; box-sizing: border-box; font-family: var(--mono, ui-monospace, monospace); font-size: 28px;
  letter-spacing: .18em; text-align: center; text-transform: uppercase;
  padding: 14px 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
}
.code-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.btn-block { width: 100%; margin-top: 14px; }
.join-error { color: var(--danger, #ff5c5c); font-size: 13px; margin-top: 12px; }
#retrieve-status { color: var(--text-dim); font-size: 14px; min-height: 20px; }
.live-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.live-head code { font-family: var(--mono, monospace); font-size: 18px; letter-spacing: .1em; }

.drop-zone__btn--folder { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); margin-left: 8px; }
.drop-zone__btn--folder:hover { border-color: var(--accent); background: var(--surface); }
.staged-item__name .staged-item__path { color: var(--text-dim); }

/* Incoming-folder banner (retrieve side) */
.folder-banner {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 8px;
  background: var(--surface-2); border: 1px solid var(--accent); border-radius: 10px;
}
.folder-banner__icon { font-size: 20px; }
.folder-banner__text { flex: 1; color: var(--text); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
