/* encom Transfert — système "Signal" (voir DESIGN.md) */
:root {
  --bg: #FFFFFF; --bg-subtle: #F6F7F9; --surface: #FFFFFF;
  --border: #D9DDE4; --border-strong: #B8BFCB;
  --text: #121621; --text-muted: #626B7C; --text-faint: #8A93A3;
  --primary: #0B6E69; --primary-hover: #085853; --primary-soft: #E3F3F1; --on-primary: #FFFFFF;
  --accent: #F5A524;
  --success: #1A7A43; --warning: #9A5B00; --error: #C8352B; --error-soft: #FBEAE8;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-full: 999px;
  --shadow-float: 0 1px 2px rgb(10 13 20 / .06), 0 8px 24px rgb(10 13 20 / .08);
  --gutter: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0D14; --bg-subtle: #121621; --surface: #161B27;
    --border: #2A3142; --border-strong: #3D4559;
    --text: #ECEEF2; --text-muted: #9AA3B2; --text-faint: #6B7486;
    --primary: #3CC7B8; --primary-hover: #5FD6C9; --primary-soft: #0F2E2C; --on-primary: #0A0D14;
    --success: #4ADE80; --warning: #FBBF24; --error: #F87171; --error-soft: #2A1517;
    --shadow-float: 0 0 0 1px #3D4559;
    color-scheme: dark;
  }
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-subtle); color: var(--text); font-family: var(--font-sans);
  font-size: 1rem; line-height: 1.625rem; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.wrap { max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: .8125rem; line-height: 1.25rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
form.inline { display: inline; }

/* Header */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { font-weight: 600; font-size: 1.3125rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo svg { width: 22px; height: 22px; }
.logo small { font: 500 .6875rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px 6px; margin-inline-start: 2px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 6px 12px; border-radius: var(--radius-sm); }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: var(--bg-subtle); }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); border-radius: var(--radius-sm); cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.me { display: flex; align-items: center; gap: 10px; }
.me-txt { display: flex; flex-direction: column; line-height: 1.125rem; }
.me-txt b { font-weight: 500; font-size: .875rem; }
.me-txt span { font-size: .75rem; color: var(--text-muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 600; font-size: .8125rem; flex: none; }
@media (max-width: 860px) { .me-txt { display: none; } }
@media (max-width: 620px) { .nav .wrap { gap: 12px; } .nav-links a { padding: 6px 8px; font-size: .875rem; } .logo small { display: none; } }
@media (max-width: 440px) { .nav-links a .long { display: none; } .me { display: none; } }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--radius-md);
  font: 500 .9375rem/1 var(--font-sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-subtle); }
.btn-quiet { background: none; color: var(--primary); padding-inline: 6px; height: 36px; }
.btn-quiet:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-quiet.danger { color: var(--error); }
.btn-sm { height: 32px; padding: 0 12px; font-size: .8125rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; height: 48px; }
.btn:disabled { background: var(--bg-subtle); color: var(--text-faint); border-color: var(--border); cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: .8125rem; line-height: 1.25rem; font-weight: 500; }
.hint { font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
.input, select.input, textarea.input { height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: 400 1rem var(--font-sans); width: 100%; min-width: 0; }
textarea.input { height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.5rem; }
.input::placeholder { color: var(--text-faint); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input.err { border-color: var(--error); }
.err-msg { font-size: .8125rem; line-height: 1.25rem; color: var(--error); }
.alert { background: var(--error-soft); color: var(--error); border: 1px solid var(--error); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .9375rem; line-height: 1.375rem; }
.notice { background: var(--primary-soft); color: var(--text); border: 1px solid var(--border); border-inline-start: 3px solid var(--primary);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: .9375rem; margin-bottom: 16px; }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px 2px 9px; border-radius: var(--radius-full); border: 1px solid var(--border);
  background: var(--surface); font-size: .8125rem; line-height: 1.25rem; font-weight: 500; white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.dot.ok { background: var(--success); } .dot.warn { background: var(--warning); } .dot.off { background: var(--text-faint); }

.page { padding-block: 32px 72px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.page-head h1 { font-size: 1.75rem; line-height: 2.25rem; letter-spacing: -.01em; }

/* Login */
.login { min-height: calc(100vh - 61px); display: grid; place-items: center; padding-block: 48px; }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-float);
  padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.login-card h1 { font-size: 1.5rem; line-height: 2rem; }
.sep { display: flex; align-items: center; gap: 12px; font-size: .8125rem; color: var(--text-faint); }
.sep::before, .sep::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
@media (max-width: 440px) { .login-card { padding: 22px; } }

/* Send */
.app-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; }
.app-grid > * { min-width: 0; }
@media (max-width: 920px) { .app-grid { grid-template-columns: 1fr; } }
.tcard, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.tcard-head, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--border); }
.tcard-head h2, .panel-head h2 { font-size: 1rem; line-height: 1.5rem; }
.tcard-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 480px) { .tcard-body { padding: 18px; } .tcard-head, .panel-head { padding: 12px 18px; } }

.drop { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); padding: 26px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-soft); }
.drop:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.drop .icon-tile { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.drop.over .icon-tile { background: var(--surface); }
.drop .icon-tile svg { width: 22px; height: 22px; }
.drop strong { font-weight: 500; }
.drop u { color: var(--primary); text-underline-offset: 3px; }

.files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-md); }
.file { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; }
.file + .file { border-top: 1px solid var(--border); }
.ftype { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--bg-subtle); border: 1px solid var(--border);
  display: grid; place-items: center; font: 500 9.5px/1 var(--font-mono); color: var(--text-muted); letter-spacing: .02em; text-transform: uppercase; overflow: hidden; }
.fname { min-width: 0; display: flex; flex-direction: column; }
.fname b { font-weight: 500; font-size: .9375rem; line-height: 1.375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsize { font: 400 .875rem var(--font-mono); color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rm { width: 32px; height: 32px; border: 0; background: none; color: var(--text-faint); cursor: pointer; border-radius: var(--radius-sm); display: grid; place-items: center; }
.rm:hover { color: var(--error); background: var(--bg-subtle); }
.rm.dl-icon { color: var(--primary); }
.rm.dl-icon:hover { color: var(--primary-hover); background: var(--primary-soft); }
.files-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--bg-subtle); font-size: .8125rem; }
.bar { flex: 1; max-width: 180px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); }
.bar.over i { background: var(--error); }
.empty-files { padding: 14px; font-size: .875rem; color: var(--text-muted); text-align: center; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { position: relative; width: 40px; height: 24px; flex: none; display: inline-block; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 12px; background: var(--border-strong); transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.progress { display: flex; flex-direction: column; gap: 18px; padding-block: 12px; }
.trace { position: relative; height: 24px; }
.trace::before { content: ""; position: absolute; inset-inline: 8px; top: 11px; border-top: 1.5px dashed var(--border-strong); }
.trace .fill { position: absolute; inset-inline-start: 8px; top: 11px; border-top: 1.5px solid var(--primary); width: 0; }
.trace .end { position: absolute; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); }
.trace .end.a { inset-inline-start: 0; border-color: var(--primary); }
.trace .end.b { inset-inline-end: 0; }
.trace .spark { position: absolute; top: 7px; width: 10px; height: 10px; margin-inline-start: 3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(245 165 36 / .2); inset-inline-start: 0; }
.prog-nums { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.prog-nums .big { font: 500 2.5rem/1 var(--font-mono); letter-spacing: -.02em; }
.prog-nums .big small { font-size: 1rem; color: var(--text-muted); }
.prog-meta { display: flex; gap: 20px; font: 400 .875rem var(--font-mono); color: var(--text-muted); flex-wrap: wrap; }

.done { display: flex; flex-direction: column; gap: 18px; }
.done-head { display: flex; gap: 14px; align-items: flex-start; }
.ok-tile { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.done-head h3 { font-size: 1.375rem; line-height: 1.875rem; }
.linkbox { display: flex; gap: 8px; }
.linkbox .input { font-family: var(--font-mono); font-size: .9375rem; background: var(--bg-subtle); }
.spec { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; border-bottom: 1px solid var(--border); font-size: .9375rem; }
.spec li span:first-child { color: var(--text-muted); }
.spec li span:last-child { text-align: end; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .linkbox { flex-direction: column; } }

.side { display: flex; flex-direction: column; gap: 24px; }
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 24px; }
.recent li + li { border-top: 1px solid var(--border); }
.recent b { font-weight: 500; font-size: .9375rem; line-height: 1.375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent small { font-size: .8125rem; color: var(--text-muted); grid-column: 1; }
.recent .pill { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.panel-foot { padding: 12px 24px; border-top: 1px solid var(--border); }
.usage { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.usage .v { font: 500 1.5rem/1 var(--font-mono); letter-spacing: -.01em; }
.usage .v small { font-size: .9375rem; color: var(--text-muted); font-family: var(--font-sans); }
.usage .bar { max-width: none; height: 6px; border-radius: 3px; }
@media (max-width: 480px) { .recent li, .panel-foot, .usage { padding-inline: 18px; } }

/* Transfers list */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.toolbar-right { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tabs { display: flex; gap: 4px; background: var(--bg-subtle); padding: 3px; border-radius: var(--radius-md); border: 1px solid var(--border); }
.tabs a { text-decoration: none; font: 500 .8125rem/1 var(--font-sans); color: var(--text-muted); padding: 8px 12px; border-radius: var(--radius-sm); }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.tabs .num { color: var(--text-faint); margin-inline-start: 6px; }
.team-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--text); text-decoration: none; }
.team-toggle:hover { text-decoration: none; color: var(--primary); }
.team-toggle .switch input { cursor: pointer; }
.search { width: 240px; max-width: 100%; height: 36px; font-size: .9375rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 860px; font-size: .9375rem; }
th, td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: .75rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-subtle); white-space: nowrap; }
tbody tr:hover { background: var(--bg-subtle); }
td .t1 { font-weight: 500; display: block; }
td .t2 { font-size: .8125rem; color: var(--text-muted); display: block; }
td.n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.acts { white-space: nowrap; text-align: end; }
td.acts > * + * { margin-inline-start: 4px; }
td.acts .btn-quiet { padding-inline: 6px; }
.empty-row td { text-align: center; color: var(--text-muted); padding: 40px 16px; }
tr.has-resend-open > td { border-bottom-color: transparent; background: var(--bg-subtle); }
tr.resend-row > td { background: var(--bg-subtle); padding-top: 0; }
tr.resend-row:hover { background: var(--bg-subtle); }
.resend-form { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-start; justify-content: flex-end; }
.resend-form > label { font-size: .875rem; line-height: 32px; font-weight: 400; color: var(--text-muted); }
.resend-form > label b { color: var(--text); font-weight: 500; }
.resend-field { width: 300px; max-width: 100%; }
.resend-field .input { height: 32px; font-size: .875rem; }

/* Suggestion de correction d'adresse e-mail */
.suggest { margin: 4px 0 0; font-size: .8125rem; line-height: 1.25rem; color: var(--warning); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkish.muted-link { color: var(--text-muted); margin-inline-start: 8px; }
.empty-row:hover { background: none; }

/* Client page */
.dl { padding-block: 40px 88px; }
.dl-inner { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }
.preview-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; font-size: .875rem; color: var(--text-muted);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-md); padding: 8px 14px; }
.dl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); overflow: hidden; }
.dl-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); font-size: .8125rem; color: var(--text-muted); }
.dl-top { padding: 28px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--border); }
.dl-top h1 { font-size: 1.75rem; line-height: 2.25rem; letter-spacing: -.01em; }
.sender { display: flex; align-items: center; gap: 12px; }
.msg-quote { border-inline-start: 2px solid var(--border-strong); padding-inline-start: 14px; color: var(--text-muted); font-size: .9375rem; line-height: 1.5rem; }
.dl-files { list-style: none; margin: 0; padding: 0; }
.dl-files .file { padding: 12px 28px; }
.dl-bottom { padding: 20px 28px 28px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.dl-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: .875rem; color: var(--text-muted); }
.lock { padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 480px) { .dl-top, .dl-bottom, .dl-brand, .lock { padding-inline: 18px; } .dl-files .file { padding-inline: 18px; } .dl-top h1 { font-size: 1.5rem; line-height: 2rem; } }

.toast { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-md);
  font-size: .9375rem; box-shadow: var(--shadow-float); max-width: calc(100vw - 32px); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Logo ENCOM ---------- */
.logo .logo-img { display: block; height: 42px; width: auto; }
.dl-brand .logo-img { display: block; height: 26px; width: auto; }
@media (prefers-color-scheme: dark) {
  /* Le logo est conçu pour un fond clair : en mode sombre on le pose sur une pastille blanche. */
  .logo-img { background: #fff; padding: 3px 8px; border-radius: 6px; box-sizing: content-box; }
}
@media (max-width: 440px) { .logo .logo-img { height: 28px; } }

/* ---------- Photo d'arrière-plan (une par visite) ---------- */
html { background: #0A0D14; }
body.has-photo { background: transparent; }
body.has-photo::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(10 13 20 / .40) 0%, rgb(10 13 20 / .58) 50%, rgb(10 13 20 / .78) 100%),
    var(--photo) center / cover no-repeat;
}
.has-photo .tcard, .has-photo .panel, .has-photo .dl-card, .has-photo .login-card { box-shadow: 0 12px 40px rgb(0 0 0 / .28); border-color: transparent; }
.has-photo .page-head h1, .has-photo .page-head .eyebrow { color: #fff; text-shadow: 0 1px 14px rgb(0 0 0 / .45); }
.has-photo .page-head .eyebrow { color: rgb(255 255 255 / .82); }
.has-photo .dl-inner > p.muted { color: rgb(255 255 255 / .82); text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.has-photo .preview-bar { background: var(--surface); border-style: solid; border-color: transparent; }
.photo-caption {
  position: fixed; z-index: 1; margin: 0; pointer-events: none;
  inset-inline-end: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  font-size: .75rem; line-height: 1rem; color: rgb(255 255 255 / .78); text-shadow: 0 1px 6px rgb(0 0 0 / .6);
}
.photo-caption::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-inline-end: 6px; vertical-align: 1px; }
@media (max-width: 640px) { .photo-caption { font-size: .6875rem; } }
