:root { --brand: #1b62c0; --gold: #e0a82e; --panel: #ffffff; --text: #14171c; --muted: #6b7380; --line: #e3e6ea; color-scheme: light; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { touch-action: manipulation; background: #2850aa; }
html, body { margin: 0; min-height: 100%; color: #fff; font: 16px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background: linear-gradient(#1e78d7, #2850aa) fixed; min-height: calc(100dvh + var(--samog-extra, 0px)); }
#app { max-width: 720px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 26px) 18px calc(var(--safe-bottom, env(safe-area-inset-bottom)) + 24px); }
button { font: inherit; cursor: pointer; }
input { font: inherit; font-size: 16px; }

/* login */
.login { display: flex; flex-direction: column; gap: 14px; max-width: 380px; margin: 8vh auto 0; text-align: center; }
.login img { width: 96px; border-radius: 22px; align-self: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.login h1 { margin: 6px 0 4px; font-size: 28px; }
.login p { margin: 0; opacity: .85; }
.field { width: 100%; padding: 14px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .95); color: var(--text); }
.field:focus { outline: 3px solid var(--gold); }
.code { letter-spacing: .5em; text-align: center; font-size: 24px; }
.primary { padding: 14px; border-radius: 14px; border: 0; background: var(--gold); color: #1d1405; font-weight: 700; }
.primary:disabled { opacity: .6; }
.link { background: none; border: 0; color: #fff; opacity: .85; padding: 6px; text-decoration: underline; }
.error { color: #ffd2cc; min-height: 1.3em; font-size: 14.5px; }

/* hub */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.top h1 { margin: 0; font-size: 30px; }
.top .who { font-size: 14px; opacity: .85; }
.top button { background: rgba(255, 255, 255, .18); border: 0; color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tile { background: var(--panel); color: var(--text); border: 0; border-radius: 24px; padding: 14px; text-align: left;
	display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); text-decoration: none; }
.tile:active { transform: scale(.97); }
.tile img { width: 100%; aspect-ratio: 1; border-radius: 18px; display: block; }
.tile .name { font-weight: 800; font-size: 17px; }
.tile .state { font-size: 13.5px; color: var(--muted); }
.tile.soon { opacity: .75; cursor: default; }
.tile.soon .name::after { content: " · bientôt"; color: var(--gold); font-weight: 700; font-size: 14px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-bottom, env(safe-area-inset-bottom)) + 30px);
	background: rgba(20, 20, 20, .88); color: #fff; padding: 9px 16px; border-radius: 12px; font-size: 14.5px; }
