:root {
  --bg: #0b0c0f; --s1: #121419; --s2: #181b21; --line: #23272f;
  --text: #e8eaee; --muted: #8b919c;
  --accent: #f2b33d; --accent-text: #f2b33d; --on-accent: #17130a;
  --green: #3ccf8e; --red: #f06464; --orange: #f59a4b;
  --r: 12px; --r-s: 8px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f5f3; --s1: #ffffff; --s2: #f0f0ed; --line: #e1e1dc;
  --text: #17181b; --muted: #676c75; --accent-text: #9a6a08;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.45 Geist, system-ui, sans-serif; font-variant-numeric: tabular-nums;
  min-height: 100vh;
}
[hidden] { display: none !important; }
h2, h3, h4 { margin: 0; font-weight: 600; }
h2 { font-size: 18px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
.muted { color: var(--muted); margin: 2px 0 0; }
.hint { font-size: 13px; text-align: center; margin: 10px 0; }
.mono { font-family: "Geist Mono", monospace; }

/* boutons et champs */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--s2); color: var(--text);
  font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #3a404b; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); }
.btn.icon { width: 36px; padding: 0; justify-content: center; }
.btn i { font-size: 17px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--s2); border: 1px solid var(--line);
  border-radius: var(--r-s); padding: 8px 10px; min-height: 36px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -1px; }
textarea { resize: vertical; }
.pill { display: inline-block; min-width: 20px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; text-align: center; }

/* en-tête */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px;
  padding: 10px 20px; 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: 8px; font-weight: 700; font-size: 16px; }
.logo { display: grid; place-items: center; width: 24px; height: 32px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.tabs { display: flex; gap: 4px; }
.tabs a { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-s); color: var(--muted); text-decoration: none; font-weight: 500; }
.tabs a.on { background: var(--s2); color: var(--text); }
.tabs i { font-size: 17px; }
.top-actions { margin-left: auto; display: flex; gap: 6px; }

main { padding: 20px; max-width: 1400px; margin: 0 auto; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.kpi span { color: var(--muted); font-size: 12px; }
.kpi b { display: block; font-size: 20px; font-weight: 600; margin-top: 2px; }
.pos { color: var(--green); } .neg { color: var(--red); }

.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar > div:first-child:not(.search) { flex: 1; }
.toolbar select { width: auto; }
.search { position: relative; flex: 1; min-width: 180px; }
.search i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 32px; }
.selbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 12px;
  background: var(--s1); border: 1px solid var(--accent); border-radius: var(--r);
}
.selbar span:first-child { font-weight: 600; margin-right: auto; }

/* grille d'objets */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.card {
  position: relative; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
}
.card:hover { border-color: #3a404b; }
.card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card .cover { aspect-ratio: 1; background: var(--s2) center/contain no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 32px; }
.card .body { padding: 10px 12px 12px; display: grid; gap: 6px; }
.card .name { font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.9em; }
.card .nums { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.card .nums b { color: var(--text); font-weight: 600; }
.card .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag.en_vente { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tag.vendu { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.card .tick {
  position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 7px;
  background: color-mix(in srgb, var(--bg) 75%, transparent); border: 1px solid var(--line);
  display: grid; place-items: center; color: transparent;
}
.card.sel .tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* photos */
.drop { border: 1px dashed transparent; border-radius: var(--r); padding: 4px; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.drop.small { border-color: var(--line); padding: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ph-tile { position: relative; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.ph-tile img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: contain; cursor: zoom-in; }
.ph-tile.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ph-tile .meta { display: flex; align-items: center; gap: 4px; padding: 4px; font-size: 11px; color: var(--muted); }
.ph-tile .meta .spacer { flex: 1; }
.ph-tile .meta button { border: 0; background: none; color: var(--muted); padding: 3px; cursor: pointer; border-radius: 5px; font-size: 15px; display: grid; }
.ph-tile .meta button:hover { color: var(--text); background: var(--s1); }
.role { display: flex; gap: 2px; }
.role button { font-size: 11px !important; padding: 2px 6px !important; border: 1px solid var(--line) !important; }
.role button.on { background: var(--accent) !important; color: var(--on-accent) !important; border-color: var(--accent) !important; }
.ph-tile .check { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 75%, transparent); border: 1px solid var(--line); display: grid; place-items: center; color: transparent; cursor: pointer; }
.ph-tile.sel .check { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ph-tile .src { position: absolute; top: 6px; right: 6px; font-size: 11px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 75%, transparent); color: var(--muted); }

/* fiche */
dialog { border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); color: var(--text); padding: 0; }
dialog::backdrop { background: rgb(0 0 0 / .55); }
.sheet { width: min(860px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.sheet.narrow { width: min(480px, calc(100vw - 24px)); }
.sheet form { display: flex; flex-direction: column; max-height: calc(100dvh - 26px); }
.sheet-head, .sheet-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet-foot { border-bottom: 0; border-top: 1px solid var(--line); }
.sheet-head h3 { flex: 1; }
.spacer { flex: 1; }
.sheet-body { padding: 16px; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet-body.single { grid-template-columns: 1fr; }
.field { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.field.wide, .wide { grid-column: 1 / -1; }
.block { border-top: 1px solid var(--line); padding-top: 12px; }
.block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.block-head h4 { flex: 1; }
.row { display: flex; gap: 6px; flex-wrap: wrap; }
.listing { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.listing a { color: var(--accent-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.listing-add { display: grid; grid-template-columns: 100px 1fr 90px 36px; gap: 6px; margin-top: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.check input { width: auto; min-height: 0; }
.pick-list { display: grid; gap: 4px; max-height: 50vh; overflow: auto; }
.pick-list button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--s2); color: var(--text); font: inherit; cursor: pointer; }
.pick-list button:hover { border-color: var(--accent); }
.pick-list img, .pick-list .noimg { width: 36px; height: 48px; object-fit: contain; border-radius: 4px; background: var(--s1); flex: none; }

.login { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: var(--bg); padding: 16px; }
.login-box { width: min(360px, 100%); display: grid; gap: 12px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.login-box .btn { justify-content: center; }
.login-err { color: var(--red); margin: 0; font-size: 13px; }
.card-link { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.card-link:empty { display: none; }
.card-link img { width: 64px; border-radius: 4px; }
.card-link .info { flex: 1; display: grid; gap: 2px; font-size: 13px; }
.name-field { position: relative; }
.name-row { display: flex; gap: 8px; align-items: center; }
.name-row .check { white-space: nowrap; color: var(--text); font-weight: 500; }
.name-hits {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 10; margin-top: 4px; max-height: 360px; overflow: auto;
  background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: 0 10px 30px rgb(0 0 0 / .35);
}
.name-hits button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.name-hits button:hover, .name-hits button.on { background: var(--s2); }
.name-hits img, .name-hits .noimg { width: 40px; height: 56px; object-fit: contain; border-radius: 3px; background: var(--s2); flex: none; }
.name-hits .lbl { flex: 1; }
.name-hits .msg { padding: 10px; color: var(--muted); font-size: 13px; }
.name-card { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.name-card b { color: var(--accent-text); font-weight: 500; }
.name-card button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; display: grid; }
.card-hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-top: 8px; max-height: 320px; overflow: auto; }
.card-hits:empty { display: none; }
.card-hits button { display: grid; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--s2); color: var(--text); font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.card-hits button:hover { border-color: var(--accent); }
.card-hits img, .card-hits .noimg { width: 100%; aspect-ratio: 63/88; object-fit: contain; background: var(--s1); border-radius: 4px; }
.stale { color: var(--orange); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vision { background: var(--s1); border: 1px solid var(--accent); border-radius: var(--r); padding: 10px 12px; margin-bottom: 12px; }
.vision-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vision-list { display: grid; gap: 8px; margin-top: 8px; }
.vision-list:empty { display: none; }
.vrow { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--s2); }
.vrow img { width: 54px; height: 72px; object-fit: contain; background: var(--s1); border-radius: 4px; }
.vrow .noimg { width: 54px; height: 72px; border-radius: 4px; background: var(--s1); display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.vrow .info { flex: 1; font-size: 13px; }
.vrow input { width: auto; min-height: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.seg label { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--s2); color: var(--text); cursor: pointer; font-size: 13px; }
.seg label:has(input:checked) { border-color: var(--accent); }
.seg input { width: auto; min-height: 0; accent-color: var(--accent); }
.batch-items { display: grid; gap: 4px; max-height: 40vh; overflow: auto; }
.bi { display: grid; grid-template-columns: 1fr auto 110px; gap: 8px; align-items: center; padding: 6px 8px; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-s); font-size: 13px; }
.bi input { min-height: 30px; padding: 4px 8px; }
.bi .warn { color: var(--orange); }
.batches { display: grid; gap: 10px; }
.batch { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 8px; }
.batch-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.batch-head h4 { margin-right: auto; }
.batch table { width: 100%; border-collapse: collapse; font-size: 13px; }
.batch td { padding: 4px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.batch td a { color: var(--accent-text); }
.batch pre { margin: 0; white-space: pre-wrap; font: 12px "Geist Mono", monospace; color: var(--muted); max-height: 120px; overflow: auto; }
.tag.en_cours { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tag.termine { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.tag.annule { text-decoration: line-through; }
.cmd { display: flex; gap: 6px; align-items: center; }
.cmd code { flex: 1; padding: 8px 10px; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-s); font: 13px "Geist Mono", monospace; overflow-wrap: anywhere; }
.market-kpi { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; }
.market-kpi b { color: var(--text); }
.sales { width: 100%; border-collapse: collapse; font-size: 12px; }
.sales td { padding: 3px 4px; border-top: 1px solid var(--line); }
.sales a { color: var(--accent-text); }
.listing details { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.listing details pre { white-space: pre-wrap; font: inherit; margin: 4px 0 0; }
.listing { flex-wrap: wrap; }
.listing select { width: auto; min-height: 30px; padding: 4px 8px; }
.cam-stage { position: relative; background: #000; display: grid; place-items: center; min-height: 240px; }
.cam-stage video { display: block; max-width: 100%; max-height: calc(100dvh - 160px); }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; }
.flash.on { opacity: .7; transition: none; }
.viewer { max-width: 96vw; max-height: 96dvh; background: #000; }
.viewer img { display: block; max-width: 96vw; max-height: 96dvh; }
.viewer .btn { position: absolute; top: 8px; right: 8px; background: rgb(0 0 0 / .5); color: #fff; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 14px; box-shadow: 0 6px 24px rgb(0 0 0 / .35); }
.toast.err { border-color: var(--red); }

/* ---------- téléphone ---------- */
@media (max-width: 720px) {
  :root { --nav-h: calc(58px + env(safe-area-inset-bottom)); }
  body { font-size: 15px; }
  input, select, textarea { font-size: 16px; }  /* pas de zoom automatique sur iPhone */

  /* en-tête compact ; les onglets passent en barre du bas */
  /* pas de backdrop-filter ici : il ferait de l'en-tête le repère de la barre fixe du bas */
  .top { padding: 8px 16px; gap: 8px; padding-top: max(8px, env(safe-area-inset-top)); backdrop-filter: none; background: var(--bg); }
  .top-actions { gap: 2px; }
  .top-actions .btn span { display: none; }
  .top-actions .btn { width: 38px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: var(--nav-h);
    padding: 4px 8px env(safe-area-inset-bottom); gap: 0;
    background: color-mix(in srgb, var(--s1) 94%, transparent); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .tabs a { flex: 1; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 0; font-size: 11px; position: relative; border-radius: var(--r-s); }
  .tabs a.on { background: none; color: var(--accent-text); }
  .tabs i { font-size: 22px; }
  .tabs .pill { position: absolute; top: 2px; left: calc(50% + 6px); font-size: 10px; min-width: 16px; padding: 0 5px; }

  main { padding: 12px 16px calc(var(--nav-h) + 16px); }

  /* chiffres clés : bande horizontale défilante */
  .kpis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; gap: 8px; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
  .kpis::-webkit-scrollbar { display: none; }
  .kpi { flex: 0 0 auto; min-width: 132px; padding: 8px 12px; scroll-snap-align: start; }
  .kpi b { font-size: 17px; }

  .toolbar { gap: 6px; }
  .toolbar .search { flex-basis: 100%; }
  .toolbar select { flex: 1; min-width: 0; }
  .toolbar > div:first-child:not(.search) { flex-basis: 100%; }
  .toolbar > .btn, .toolbar > label.btn { flex: 1; justify-content: center; }
  /* « Ajouter » : bouton rond flottant au-dessus de la barre du bas */
  #add-btn {
    position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px); z-index: 14; flex: none;
    width: 56px; height: 56px; border-radius: 50%; padding: 0; box-shadow: 0 8px 24px rgb(0 0 0 / .45);
  }
  #add-btn span { display: none; }
  #add-btn i { font-size: 26px; }
  body:has(#selbar:not([hidden])) #add-btn { display: none; }
  .btn { height: 40px; }

  /* barre de sélection collée au-dessus de la barre du bas */
  .selbar { position: fixed; left: 8px; right: 8px; bottom: calc(var(--nav-h) + 8px); z-index: 15; margin: 0; box-shadow: 0 8px 30px rgb(0 0 0 / .4); }
  .selbar span:first-child { flex: 1; margin-right: 0; }
  .selbar .btn { flex: 1; justify-content: center; }
  .selbar .btn.ghost:not(.danger) { flex: none; }
  .selbar .btn.danger { flex: none; width: 40px; padding: 0; }
  .selbar .btn.danger span { display: none; }
  #inbox-sel-clear + .btn, #sel-clear + .btn { flex-basis: 100%; order: 3; }
  #inbox-new { order: 4; }
  #inbox-delete { order: 5; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card .body { padding: 8px 10px 10px; gap: 4px; }
  .card .name { font-size: 14px; }
  .card .nums { flex-direction: column; gap: 0; font-size: 12px; }
  .card .tick { width: 32px; height: 32px; }
  .tag { font-size: 10px; padding: 1px 6px; }

  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ph-tile .check { width: 28px; height: 28px; }
  .ph-tile .meta { flex-wrap: wrap; }

  /* fenêtres en plein écran */
  dialog.sheet, dialog.sheet.narrow { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .sheet form { height: 100dvh; max-height: 100dvh; }
  .sheet-head { padding: max(10px, env(safe-area-inset-top)) 16px 10px; }
  .sheet-body { grid-template-columns: 1fr 1fr; padding: 16px; flex: 1; align-content: start; }
  .sheet-body .field:not(.wide):has(select), .sheet-body .wide, .sheet-body.single > * { grid-column: 1 / -1; }
  .sheet-foot { padding: 10px 16px max(10px, env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .sheet-foot .btn span { display: none; }
  .sheet-foot .btn.primary { flex: 1; justify-content: center; }
  .name-row { flex-wrap: wrap; }
  .name-hits { max-height: 50dvh; }
  .listing-add { grid-template-columns: 1fr 1fr; }
  .listing { gap: 6px; }
  .bi { grid-template-columns: 1fr 100px; }
  .bi > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 12px; }
  .seg label { flex: 1; justify-content: center; }
  .card-link { flex-wrap: wrap; }
  .cam-stage video { max-height: calc(100dvh - 140px); }

  .vrow { flex-wrap: wrap; }
  .vrow img, .vrow .noimg { width: 46px; height: 62px; }
  .vrow .info { flex-basis: 100%; }
  .batch { padding: 10px 12px; }
  .batch-head .muted { flex-basis: 100%; order: 3; font-size: 12px; }
  .batch table, .batch tbody, .batch tr, .batch td { display: block; }
  .batch tr { padding: 6px 0; border-top: 1px solid var(--line); }
  .batch td { border: 0; padding: 1px 0; }
  .sales td:nth-child(2), .sales td:nth-child(4) { display: none; }

  .viewer { max-width: 100vw; max-height: 100dvh; margin: auto; }
  .viewer img { max-width: 100vw; max-height: 100dvh; }
  .toast { bottom: calc(var(--nav-h) + 12px); left: 16px; right: 16px; transform: none; text-align: center; }
  .login-box { padding: 20px; }
}
