/* Fotile — fond neutre sombre (les photos ressortent mieux), accent ambre. */

:root {
  --bg: #121212;
  --surface: #1c1c1c;
  --surface-2: #262626;
  --line: #333;
  --text: #ececec;
  --muted: #9a9a9a;
  --accent: #e8a33d;
  --accent-ink: #1a1206;
  --danger: #e2725b;
  --radius: 10px;
  --gap: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
p { margin: 0 0 .6em; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 7px var(--accent);
}
.identity { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.identity .who::before { content: "● "; color: var(--accent); }

/* ---------- Mise en page ---------- */
.page { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }
.page.wide { max-width: 1400px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > * { flex: 1 1 160px; }

/* ---------- Formulaires ---------- */
label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
input, textarea, select {
  width: 100%;
  font: inherit; color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }
.form-error { color: var(--danger); min-height: 0; margin: 0; }
.form-error:empty { display: none; }
.actions { display: flex; justify-content: flex-end; gap: 8px; }

.btn {
  font: inherit; font-weight: 600;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text);
  cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link.danger { color: var(--danger); }

/* ---------- Accueil ---------- */
.intro { margin-bottom: 20px; }
.gallery-list { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.gallery-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.gallery-card:hover { transform: translateY(-2px); border-color: var(--muted); }
.gallery-card .cover { aspect-ratio: 3 / 2; background: var(--surface-2); }
.gallery-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-empty { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--surface-2) 0 12px, var(--surface) 12px 24px); }
.gallery-card .body { padding: 14px 16px 16px; }
.gallery-card h2 { font-size: 1.2rem; margin-top: 8px; }
.gallery-card .desc { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-card .meta { font-size: .85rem; color: var(--muted); margin: 0; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); }
.pill[data-status="En cours"] { background: var(--accent); color: var(--accent-ink); }

.admin-panel { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.admin-panel summary { cursor: pointer; color: var(--muted); }
.admin-panel form { margin-top: 14px; }

/* ---------- Page galerie ---------- */
.gallery-head { margin-bottom: 18px; }
.back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--text); }
.lead { font-size: 1.1rem; max-width: 70ch; }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 18px;
}
.layout-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; overflow-x: auto; max-width: 100%; }
.layout-switch button {
  font: inherit; font-size: .9rem; white-space: nowrap;
  background: none; border: 0; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.layout-switch button[aria-checked="true"], .layout-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

/* ---------- Mur : tuiles communes ---------- */
.tile { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.tile-open { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; }
.tile figcaption { display: grid; gap: 2px; padding: 8px 10px 10px; font-size: .85rem; }
.t-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-meta { color: var(--muted); }
.t-caption { margin-top: 4px; }
.t-exif { color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.wall .empty { padding: 40px 0; text-align: center; }

/* ---------- Page galerie ---------- */
.gallery-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gallery-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.gallery-layout.no-about { grid-template-columns: minmax(0, 1fr); } /* album : pas de panneau, le mur prend toute la largeur */
.gallery-main { min-width: 0; }

/* À propos : panneau à gauche (PC), première carte (téléphone) */
.about { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.about:not(.collapsed) { width: 280px; padding: 14px 16px; position: sticky; top: 70px; }
.about-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.about-head h2 { font-size: 1.05rem; }
.about-desc { overflow-wrap: anywhere; }
.about-rules { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .9rem; }
.about-tab { font: inherit; font-size: .9rem; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 12px 8px; writing-mode: vertical-rl; }
.about-tab:hover { color: var(--text); }

/* En-tête d'album : centré (titre, auteur, « À propos ») */
.album-head { text-align: center; }
.album-head h1 { justify-content: center; }
.album-head .back { display: block; text-align: left; }
.gallery-author { margin: 0 0 8px; }
.album-about { max-width: 70ch; margin: 12px auto 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }

/* Barre d'actions : tri à gauche, filtres, disposition et actions à droite */
.bar-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.icon-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.icon-switch button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px; background: none; border: 0; border-radius: 999px; color: var(--muted); cursor: pointer; }
.icon-switch button:hover { color: var(--text); }
.icon-switch button[aria-checked="true"] { background: var(--surface-2); color: var(--text); }
.toolbar select { width: auto; max-width: 14rem; }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.check input { width: auto; }

/* Justifiée : chaque rangée est calculée par justify.js */
.jrow { display: flex; gap: 4px; margin-bottom: 4px; align-items: flex-start; }
.jitem { flex: none; min-width: 0; }
.jitem .tile-open img { width: 100%; height: auto; }

/* Mosaïque (colonnes CSS) */
.masonry { columns: 4 240px; column-gap: var(--gap); }
.masonry .card-slot { break-inside: avoid; margin-bottom: var(--gap); }

/* Carrés : grille régulière, photos rognées au centre */
.squares { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gap); }
.squares .tile-open img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

@media (max-width: 700px) {
  .gallery-layout { grid-template-columns: minmax(0, 1fr); }
  .about:not(.collapsed) { width: auto; position: static; }
  .about-tab { writing-mode: horizontal-tb; width: 100%; text-align: left; }
}

/* ---------- Commentaires ---------- */
.page-comments { margin-top: 48px; max-width: 760px; }
.comments { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.comments li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.comments li.empty { background: none; border: 0; padding: 0; }
.comments p { margin: 4px 0 0; overflow-wrap: anywhere; }
.c-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: .9rem; }
.c-head .link { margin-left: auto; font-size: .8rem; }
.comment-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }

/* ---------- Dialogues ---------- */
dialog { color: var(--text); }
dialog::backdrop { background: rgb(0 0 0 / .75); }
.modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px;
}
.modal.small { width: min(400px, calc(100vw - 24px)); }

.dropzone {
  display: grid; place-items: center; min-height: 160px;
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--surface-2); color: var(--muted);
  cursor: pointer; position: relative; overflow: hidden; text-align: center; padding: 12px;
}
.dropzone.over { border-color: var(--accent); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-preview { max-height: 260px; width: auto; border-radius: 6px; }
.hint { font-size: .85rem; margin: 0; }

/* EXIF (liste de définitions en 2 colonnes) */
.exif { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .9rem; }
.exif dt { color: var(--muted); }
.exif dd { margin: 0; font-variant-numeric: tabular-nums; }
.upload-exif:empty { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgb(10 10 10 / .97);
}
.lb-layout { display: grid; grid-template-columns: 1fr 360px; height: 100%; }
.lb-image { margin: 0; display: grid; place-items: center; padding: 20px 56px; min-height: 0; }
.lb-image img { max-height: calc(100dvh - 40px); width: auto; object-fit: contain; }
.lb-side { background: var(--surface); border-left: 1px solid var(--line); padding: 56px 20px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.lb-side h3 { font-size: 1rem; margin: 6px 0 0; }
.lb-caption:empty { display: none; }
.exif-panel summary { cursor: pointer; color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.lb-actions:empty { display: none; }
.lightbox .close, .lightbox .nav {
  position: absolute; z-index: 2;
  background: rgb(0 0 0 / .5); color: #fff; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
}
.lightbox .close { top: 10px; right: 10px; }
.lightbox .nav { top: 50%; transform: translateY(-50%); }
.lightbox .prev { left: 8px; }
.lightbox .next { right: 372px; }

@media (max-width: 860px) {
  .lb-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .lb-image { padding: 52px 8px 8px; }
  .lb-image img { max-height: 70dvh; }
  .lb-side { border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; overflow: visible; }
  .lightbox .nav { top: 35dvh; }
  .lightbox .next { right: 8px; }
  .comment-form { grid-template-columns: 1fr; }
}

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 100;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast[data-kind="error"] { border-color: var(--danger); color: var(--danger); }

/* ---------- Espace animateurs ---------- */
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; max-width: 720px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tab { font: inherit; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 8px 14px; cursor: pointer; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.admin-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.admin-row .grow { flex: 1 1 260px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.small { font-size: .85rem; }
.radios { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.radios legend { color: var(--muted); font-size: .9rem; padding: 0 4px; }
.radio { display: flex; align-items: center; gap: 6px; color: var(--text); }
.radio input { width: auto; }
.theme-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.theme-item { display: flex; gap: 6px; }
.theme-item input { flex: 1; }
.theme-item .btn { padding: 6px 12px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 600; }

/* ---------- Cartes : menu, réactions, verso ---------- */
.card { position: relative; }
.card-caption { padding: 8px 10px 10px; display: grid; gap: 4px; font-size: .85rem; }
.card-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card-menu-wrap { position: relative; flex: none; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 6px; line-height: 0; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.card-menu { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 220px; display: grid; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / .5); padding: 4px; }
.card-menu[hidden], .react-picker[hidden], .card-back[hidden], .card-front[hidden] { display: none; }
.card-menu button { font: inherit; text-align: left; background: none; border: 0; color: var(--text); padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.card-menu button:hover { background: var(--surface); }
.card-menu .danger { color: var(--danger); }
.icon { vertical-align: -3px; flex: none; }

.reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.reaction { font: inherit; font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 1px 8px; cursor: pointer; }
.reaction.mine { border-color: var(--accent); }
.reaction.add { color: var(--muted); }
.react-add { position: relative; display: inline-flex; }
.react-picker { position: absolute; left: 0; bottom: 100%; z-index: 20; display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: 0 8px 24px rgb(0 0 0 / .5); margin-bottom: 4px; }
.react-picker .reaction { border: 0; background: none; font-size: 1.15rem; padding: 2px 5px; }

.card-back { padding: 14px; display: grid; gap: 10px; }
.back-body { display: grid; gap: 8px; }
.back-line, .credits li { display: flex; align-items: center; gap: 8px; margin: 0; overflow-wrap: anywhere; }
.chips, .credits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.credits { flex-direction: column; gap: 4px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .85rem; }
.card-back hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 2px 0; }
.btn.small { font-size: .85rem; padding: 5px 12px; justify-self: start; }
.tile { overflow: visible; }
.tile-open { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }

/* ---------- Diaporama ---------- */
.slideshow { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; }
.slideshow[open] { display: grid; place-items: center; }
.slideshow img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.ss-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 70px 14px 16px; background: linear-gradient(transparent, rgb(0 0 0 / .7)); color: #fff; }
.ss-btn { position: absolute; background: rgb(0 0 0 / .5); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; }
.ss-close { top: 10px; right: 10px; }
.ss-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.ss-next { right: 10px; top: 50%; transform: translateY(-50%); }
.ss-play { right: 10px; bottom: 10px; }

/* Icônes des boutons ronds (lightbox, diaporama) et lien retour */
.lightbox .close, .lightbox .nav, .ss-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.lightbox .close .icon, .lightbox .nav .icon, .ss-btn .icon { width: 22px; height: 22px; }
.back .icon, .about-tab .icon { vertical-align: -3px; margin-right: 4px; }

/* ---------- Thème clair (le sombre reste le défaut de :root) ---------- */
:root[data-theme="light"] {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #ece9e2;
  --line: #d9d5cb;
  --text: #1d1d1b;
  --muted: #66655f;
  --accent: #b4690a;
  --accent-ink: #ffffff;
  --danger: #c4472f;
  color-scheme: light;
}
:root[data-theme="light"] dialog { background: var(--surface); }
:root[data-theme="light"] .card-menu, :root[data-theme="light"] .react-picker { box-shadow: 0 8px 24px rgb(0 0 0 / .15); }

/* ---------- Menu du pseudo et préférences ---------- */
.user-menu-wrap { position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; color: inherit; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.user-btn:hover { border-color: var(--muted); }
.user-btn .who::before { content: none; }
.user-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; display: grid; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / .4); padding: 4px; }
.user-menu > * { display: flex; align-items: center; gap: 8px; font: inherit; text-align: left; text-decoration: none; color: var(--text); background: none; border: 0; border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.user-menu > *:hover { background: var(--surface); }
.prefs-dialog { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; width: min(420px, calc(100vw - 32px)); }
.prefs-dialog fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.prefs-dialog legend { padding: 0; font-size: .9rem; color: var(--muted); }
.prefs-dialog .layout-switch .icon { vertical-align: -3px; }
.prefs-dialog .actions { display: flex; justify-content: flex-end; }

/* ---------- Format compact : photo seule, overlay au survol (ou 1er tap sur téléphone) ---------- */
.card.compact { background: none; }
.cc-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.cc-frame img { width: 100%; height: auto; }
.squares .cc-frame img { aspect-ratio: 1; object-fit: cover; }
.cc-overlay {
  position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; color: #fff;
  background: linear-gradient(rgb(0 0 0 / .45), transparent 30%, transparent 60%, rgb(0 0 0 / .6));
  opacity: 0; transition: opacity .15s;
}
.card.compact:hover .cc-overlay, .card.compact:focus-within .cc-overlay, .card.compact.show-overlay .cc-overlay,
.card.compact:has(.card-menu:not([hidden])) .cc-overlay, .card.compact:has(.react-picker:not([hidden])) .cc-overlay { opacity: 1; }
.cc-top, .cc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px; }
.cc-overlay .icon-btn, .cc-btn { color: #fff; }
.cc-overlay .icon-btn:hover, .cc-btn:hover { background: rgb(255 255 255 / .2); color: #fff; }
.cc-btn { background: none; border: 0; border-radius: 6px; padding: 4px 6px; line-height: 0; cursor: pointer; opacity: .65; }
.cc-btn.has { opacity: 1; color: var(--accent); }
.cc-open { background: none; border: 0; color: #fff; cursor: zoom-in; display: grid; place-items: center; }
.cc-open .icon { width: 36px; height: 36px; opacity: .85; }
.cc-bottom .t-title { flex: 1; min-width: 0; font-size: .85rem; text-shadow: 0 1px 2px rgb(0 0 0 / .6); }
.cc-bottom .react-add { flex: none; }
.compact .card-back { border-radius: var(--radius); background: var(--surface); cursor: pointer; }
