/* Black Diamond Society — shared interface, desktop and mobile. */
:root {
  color-scheme: dark;
  --ink: #0b0e12;
  --panel: #12161c;
  --line: #2a3038;
  --text: #f2f4f6;
  --muted: #a0a8b4;
  --silver: #dfe6ef;
  --accent: #a7c8d9;
  --body-font: 'Manrope', 'Segoe UI', sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { font: 16px/1.6 var(--body-font); }
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button, a, input, select { transition: background .18s, border-color .18s, box-shadow .18s, color .18s; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: #fff; background: #425565; }
.eyebrow { font: 500 12px/1.5 'DM Mono', monospace; letter-spacing: .16em; color: #9daab9; margin-bottom: 10px; }
h2 { font-size: clamp(32px, 3.5vw, 46px); letter-spacing: -.045em; line-height: 1.2; }
h3 { font-size: 30px; line-height: 1.3; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 120; background: white; color: #101217; padding: 12px; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.app { background: radial-gradient(ellipse at 100% 0, #19232c70, transparent 42%), var(--ink); }
.app header {
  height: auto; min-height: 132px; padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: grid; grid-template-columns: 1fr auto auto auto; grid-template-areas: 'brand online account logout' 'nav nav nav nav';
  gap: 0 26px; background: #0b0e12ed; border-bottom: 1px solid #333b46;
  backdrop-filter: blur(24px); box-shadow: 0 8px 30px #0002;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; padding: 14px 0; width: fit-content; }
.brand img { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; border: 1px solid #353d46; }
.brand .brand-text { font: 700 14px/1.35 var(--body-font); letter-spacing: .1em; margin: 0; text-align: left; }
.brand small { display: block; font: 400 10px/1.8 var(--body-font); color: #a6b0bf; letter-spacing: .24em; }
#nav { grid-area: nav; height: 56px; display: flex; gap: 4px; width: 100%; min-width: 0; border-top: 1px solid #ffffff0b; scrollbar-width: thin; scrollbar-color: #59616b transparent; }
#nav button { display: flex; gap: 8px; align-items: center; justify-content: center; font: 600 13px/1.2 var(--body-font); text-transform: none; border: 0; border-radius: 7px; color: #a0aab8; padding: 11px 12px; height: 38px; flex-shrink: 0; position: relative; }
#nav button:hover { color: #fff; background: #ffffff08; }
#nav button.active { color: #f3f6fb; background: #242c36; box-shadow: inset 0 0 0 1px #374454; }
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
.status { grid-area: account; max-width: 240px; font: 600 12px/1.5 var(--body-font); letter-spacing: 0; color: #d0d7e0; gap: 10px; }
.account-avatar { width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; color: #c4d5e5; background: #242e39; border: 1px solid #3b4857; border-radius: 50%; }
.online-button { grid-area: online; border: 1px solid #2b3b36; border-radius: 30px; padding: 8px 12px; background: #15201b; font: 600 12px/1.4 var(--body-font); color: #b1d6bf; letter-spacing: 0; }
.online-button:hover { background: #203025; }
.online-button i, #online-list i { box-shadow: none; }
.logout { grid-area: logout; font: 500 12px var(--body-font); letter-spacing: 0; text-transform: none; min-height: 40px; padding: 8px 0 8px 20px; border-left: 1px solid #2b3038; color: #a0a8b4; }
.logout:hover { color: #fff; }
.dashboard { max-width: 1288px; padding: 40px 24px 22px; }
.title-row { align-items: center; gap: 20px; }
.section-description { margin: 12px 0 0; color: #a3aebd; font-size: 14px; }
.add, .discord-button { border: 1px solid #e2e6ec; color: #141c25; background: linear-gradient(120deg, #f5f7f9, #c8d2dc); font: 700 14px/1.4 var(--body-font); letter-spacing: 0; text-transform: none; padding: 12px 20px; border-radius: 9px; min-height: 46px; justify-content: center; gap: 12px; box-shadow: 0 4px 16px #0003; }
.add:hover, .discord-button:hover { background: #fff; box-shadow: 0 5px 22px #afc9e222; }
.add:disabled { opacity: .45; cursor: not-allowed; }
.secondary-button { border: 1px solid #3b444f; background: #1d242c; color: #d8dfe8; border-radius: 9px; padding: 12px 20px; min-height: 46px; cursor: pointer; font-size: 14px; }
.secondary-button:hover { background: #303b48; }
.cards { margin: 28px 0; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { padding: 24px; border-radius: 12px; border: 1px solid #2b323c; background: linear-gradient(145deg,#1b222b,#12171e); box-shadow: 0 5px 20px #0001; min-width: 0; }
.card-label { font: 600 12px/1.5 var(--body-font); letter-spacing: .06em; color: #a5b2c2; }
.card-value { font: 700 clamp(28px, 3vw, 38px)/1.3 var(--body-font); letter-spacing: -.055em; margin-top: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card-sub { font: 400 13px/1.65 var(--body-font); color: #aab4c1; margin-top: 7px; }
.panel { border-radius: 12px; overflow: hidden; border-color: #2c333d; background: #10151bf0; }
.panel-head { align-items: center; gap: 14px; padding: 20px 24px; font: 700 14px/1.5 var(--body-font); background: #151b22; flex-wrap: wrap; }
.panel-head .muted { font-size: 12px; font-weight: 500; color: #a3afbf; }
.table-wrap { overflow: auto; scrollbar-width: thin; scrollbar-color: #536174 #10151b; }
table { font: 500 14px/1.6 var(--body-font); }
th { padding: 16px 24px; font: 600 11px/1.4 var(--body-font); letter-spacing: .08em; color: #acb8c8; background: #0e1319; }
td { padding: 18px 24px; border-color: #252d37; color: #dce2eb; }
tbody tr:hover > td { background: #ffffff03; }
.amount { font: 600 15px var(--body-font); font-variant-numeric: tabular-nums; white-space: nowrap; color: #e3eaf2; }
.tag { display: inline-block; font: 500 12px/1.5 var(--body-font); padding: 5px 9px; border-radius: 6px; border: 1px solid #303b49; background: #1a222c; color: #becddd; white-space: nowrap; }
.empty-state { padding: 44px 24px; text-align: center; color: #a7b3c2; font-size: 14px; }
.empty-state strong { display: block; color: #e2e8ef; font-size: 17px; margin: 0 0 6px; }
.dashboard-footer { display: flex; justify-content: space-between; gap: 12px; padding: 32px 0 0; margin-top: 30px; border-top: 1px solid #ffffff0c; font: 500 11px/1.7 var(--body-font); letter-spacing: .08em; color: #7b8a9c; }
/* Accueil : photo d'origine, quotas immédiatement accessibles. */
.app.home-view { background: linear-gradient(90deg,#0a0e13ee,#0a0e13dc), url('assets/bds-home-background.png') center top/cover fixed no-repeat, var(--ink); }
.home-view .welcome-card { min-height: 240px; padding: 28px 34px; gap: 28px; border-radius: 14px; border-color: #445060; background: linear-gradient(90deg,#0e141bf5 0%,#0e141be9 35%,#0e141b44 100%),url('assets/bds-home-background.png') center 48%/cover no-repeat; box-shadow: 0 15px 60px #0003; }
.welcome-copy { position: relative; z-index: 1; max-width: 610px; }
.welcome-card h3 { font-size: clamp(30px,3.4vw,42px); letter-spacing: -.045em; line-height: 1.12; }
.welcome-card h3 em { color: #c4d2df; }
.welcome-card p:not(.eyebrow) { font: 400 14px/1.7 var(--body-font); color: #b9c5d2; max-width: 450px; margin-top: 15px; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.welcome-mark { width: 142px; height: 142px; margin: 0 42px 0 20px; flex-shrink: 0; border-color: #98a9bc70; background: #080b0f; box-shadow: 0 0 80px #8aa5c018; }
.welcome-mark img { width: 104%; height: 104%; top: -2%; left: -2%; object-fit: contain; filter: grayscale(1) contrast(1.06); }
.home-view .panel { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.home-view .panel-head { background: transparent; padding: 0 0 20px; border: 0; }
.home-view .table-wrap { overflow: visible; }
.home-view table { min-width: 0; }
.home-view td { padding: 0; border: 0; }
.home-view tbody tr:hover > td { background: none; }
.quota-grid { gap: 16px; }
.quota-card { min-height: 220px; border: 1px solid #35414f!important; padding: 26px; border-radius: 12px; background: linear-gradient(145deg,#1b2632ee,#131b24f2); position: relative; overflow: hidden; }
.quota-top { float: right; }
.quota-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #91afcc14; border: 1px solid #91afcc2b; color: #c3d7e7; }
.quota-name { font: 600 14px/1.5 var(--body-font); margin: 5px 0 20px; color: #bac7d7; }
.quota-main { margin: 0; }
.quota-main strong { font: 600 50px/1.2 var(--body-font); letter-spacing: -.05em; color: #eff4fb; }
.quota-daily { font: 500 13px/1.5 var(--body-font); letter-spacing: 0; text-transform: none; color: #a0b2c8; margin-top: 18px; padding-top: 14px; border-top: 1px solid #8098b026; }
/* Fiches et recherche. */
.member-section { margin-top: 36px; }
.member-heading { align-items: center; gap: 20px; margin-bottom: 20px; }
.member-heading h3 { font-size: 28px; }
.search-field { display: flex; align-items: center; gap: 9px; background: #0e141b; border: 1px solid #34404f; border-radius: 8px; padding: 0 14px; min-width: 0; width: min(330px,100%); }
.search-field:focus-within { border-color: #9eb7d1; box-shadow: 0 0 0 3px #9eb7d115; }
.search-field > span { font: 26px Arial; color: #9cacc0; }
.search-field input { width: 100%; min-width: 0; min-height: 44px; font: 400 14px var(--body-font); color: #eef4fa; border: 0; outline: 0; background: transparent; }
input::placeholder { color: #7f8c9e; opacity: 1; }
.member-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.member-card { min-height: 178px; padding: 22px; border-radius: 10px; background: linear-gradient(145deg,#1c242e,#111820); border-color: #303c4b; transition: transform .18s,border-color .18s,background .18s; }
.member-card:hover { border-color: #8ba2ba; background: #1c2835; }
.member-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.member-mark { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 500 11px/1.5 var(--body-font); color: #a6b9ce!important; }
.member-avatar { width: 32px; height: 32px; display: grid; place-items: center; background: #2e3d4f; border-radius: 9px; font-size: 14px; color: #dce7f4; }
.member-name { font: 700 19px/1.4 var(--body-font); margin: 16px 0 8px; display: flex; justify-content: space-between; }
.member-name span { font-size: 18px; font-weight: 400; color: #778ba3; }
.member-meta { font: 400 12px/1.65 var(--body-font); color: #aab7c8; }
/* Bilans. */
.bilan-view #metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.week-selector { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 6px; }
.week-selector .card-sub { margin: 0; width: min(470px,100%); }
.heist-progress-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.heist-progress { border: 1px solid #364455; border-radius: 10px; padding: 24px; background: #19232e; }
.heist-progress-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 22px; }
.heist-progress-head strong { font-size: 20px; }
.heist-progress-head span { color: #b6c5d7; font-variant-numeric: tabular-nums; }
.heist-steps { display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; }
.heist-steps i { height: 10px; border-radius: 3px; background: #354151; }
.heist-steps i.done { background: #afcbdc; box-shadow: 0 0 16px #afcbdc1a; }
.heist-progress p { margin: 12px 0 0; color: #a0b1c6; font-size: 12px; }
.member-quota-section { margin: 30px 0 0; }
.member-quota-title { font: 600 13px var(--body-font); letter-spacing: 0; margin-bottom: 18px; }
.member-quota-title span { font: 400 12px var(--body-font); color: #a1afc1; }
.member-quota { border-radius: 9px; padding: 20px; background: #151e28; border-color: #303e4f; }
.member-quota-head { flex-wrap: wrap; }
.member-quota-head strong { font: 700 16px var(--body-font); }
.member-quota-head span { font: 600 10px var(--body-font); padding: 4px 6px; background: #ffffff05; border-radius: 4px; }
.member-quota-values { flex-wrap: wrap; gap: 12px; }
.member-quota-values b { font: 700 25px var(--body-font); }
.member-quota-values small { font: 400 12px var(--body-font); color: #a7b6c9; }
.quota-reached .member-quota-head span { background: #51bb8215; }
.bilan-view table { min-width: 0; }
/* Formulaires accessibles, y compris au clavier et sur petit écran. */
dialog, #member-dialog { width: min(540px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid #465366; border-radius: 16px; background: #141c26; box-shadow: 0 30px 100px #0009; overflow: auto; }
dialog::backdrop { background: #02060bba; backdrop-filter: blur(7px); }
dialog form, .member-profile, .online-dialog-content { padding: 32px; }
dialog form > h3 { padding-right: 30px; }
dialog .eyebrow { font-size: 11px; padding-right: 32px; }
.close { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; right: 16px; top: 16px; border: 1px solid #455165; border-radius: 50%; background: #263243; color: #dce5f0; line-height: 1; }
.close:hover { background: #3c4c60; color: #fff; }
.field { gap: 8px; margin: 18px 0; font: 600 13px/1.5 var(--body-font); color: #b3c3d5; letter-spacing: 0; text-transform: none; }
.field input, .field select, .setting-input, #week-picker, #new-member { width: 100%; min-height: 46px; padding: 11px 13px; background: #0c131c; border: 1px solid #3b495d; color: #edf3fb; font: 500 15px/1.4 var(--body-font); border-radius: 8px; }
.field input:focus, .field select:focus { border-color: #9fb8d2; outline: 0; box-shadow: 0 0 0 3px #9fb8d21a; }
.field input[type='checkbox'], .member-picker input, .four-cart input[type='checkbox'] { width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0; accent-color: #b2c9df; flex-shrink: 0; }
.field input[type='password'] { letter-spacing: .12em; font-size: 16px; }
.account-button { color: inherit; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.account-button:hover { text-decoration: underline; }
.site-alert { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 200; max-width: min(650px,90vw); }
[hidden] { display: none !important; }
.dialog-description { margin: -8px 0 24px; font-size: 14px; color: #aebdce; }
.dialog-actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 22px; margin-top: 24px; border-top: 1px solid #334154; }
.auth-error { font: 500 13px/1.6 var(--body-font); background: #6e303333; border: 1px solid #a9585d50; padding: 10px 12px; border-radius: 7px; color: #ffd0d3; }
.auth-error:empty { display: none; }
.auth-switch { font: 500 13px var(--body-font); letter-spacing: 0; text-transform: none; color: #b5c5d9; margin-top: 20px; min-height: 34px; }
#auth-dialog form > .add { width: 100%; margin-top: 10px; }
.member-picker { gap: 8px; border: 0; background: transparent; padding: 0; }
.member-picker label { display: flex; gap: 8px; align-items: center; border: 1px solid #39485a; border-radius: 7px; background: #0f1823; padding: 11px; font: 500 13px var(--body-font); cursor: pointer; }
.member-picker label:has(:checked), .four-cart-item:has(:checked) { background: #2c4055; border-color: #91a9c2; }
.member-picker label:has(:disabled) { opacity: .45; cursor: not-allowed; }
.selection-hint { font: 400 12px var(--body-font); color: #aabbd0; margin: 5px 0; }
.four-cart { border: 1px solid #3b495c; border-radius: 8px; max-height: 270px; }
.four-cart-item { grid-template-columns: 18px 1fr 66px; padding: 13px 12px; font: 500 13px/1.5 var(--body-font); border-color: #2f3c4e; }
.four-cart-item input[type='number'] { width: 66px!important; min-height: 36px; font-size: 14px; }
#cash-total { font-size: 28px; }
#member-dialog { width: min(720px,calc(100vw - 32px)); }
.profile-stats { gap: 12px; }
.profile-stat { border-radius: 9px; background: #0f1721; border-color: #344357; font: 500 13px var(--body-font); }
.profile-stat strong { font: 700 24px var(--body-font); margin-top: 10px; overflow-wrap: anywhere; }
.history-row { font: 500 13px/1.7 var(--body-font); gap: 16px; padding: 16px 0; border-color: #334154; }
.online-dialog-content { min-width: 0; background: transparent; border: 0; }
#online-list li { font-size: 15px; padding: 16px 0; border-color: #334154; }
.setting-input { min-width: 140px; }
.remove-member { background: #572b3040; color: #eeacb3; border: 1px solid #653c4655; border-radius: 7px; padding: 9px 14px; font: 600 13px var(--body-font); cursor: pointer; }
.remove-member:hover { background: #572b3080; }
/* Journal. */
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px 12px; flex-wrap: wrap; }
.admin-modes { display: flex; gap: 4px; padding: 4px; border: 1px solid #354152; background: #0d151e; border-radius: 9px; }
.admin-modes button { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 6px; background: transparent; color: #a7b7c9; cursor: pointer; font-size: 13px; }
.admin-modes button[aria-pressed='true'] { background: #304257; color: #edf4fd; }
.admin-type-picker { display: grid; gap: 5px; color: #aebed0; font: 600 11px/1.2 var(--body-font); letter-spacing: .05em; text-transform: uppercase; }
.admin-type-picker select { min-height: 40px; padding: 8px 34px 8px 11px; border: 1px solid #3b495d; border-radius: 7px; background: #0c131c; color: #edf3fb; font: 500 13px var(--body-font); }
.admin-note { color: #adbbcd; font-size: 12px; margin: 0; padding: 0 24px 18px; border-bottom: 1px solid #293746; }
.admin-deleted-meta, .admin-money-type { display: block; color: #a2b2c6; font-size: 12px; margin-top: 5px; font-weight: 400; }
.danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 18px; border: 1px solid #a75d6a; border-radius: 9px; background: #632d3b; color: #ffe1e6; font: 700 14px var(--body-font); cursor: pointer; }
.danger-button:hover { background: #843b4d; }
.danger-button.compact { min-height: 38px; padding: 9px 14px; font-size: 13px; }
.danger-button:disabled { opacity: .45; cursor: not-allowed; }
.admin-action-details { border: 1px solid #354559; border-radius: 9px; padding: 6px 18px; background: #0d1722; margin: 24px 0; }
.admin-action-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #253448; }
.admin-action-details > div:last-child { border-bottom: 0; }
.admin-action-details dt { color: #a7b8cd; font-size: 13px; }
.admin-action-details dd { margin: 0; font-size: 14px; text-align: right; overflow-wrap: anywhere; }
#admin-error { margin: 0 24px 16px; }
.logs-view .table-wrap { max-height: 560px; scrollbar-width: auto; scrollbar-gutter: stable; }
.logs-view th { background: #0e151e; }
.logs-view td:first-child { white-space: nowrap; width: 200px; font-size: 12px; }
.log-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #293746; }
.log-toolbar .search-field { width: min(440px,100%); }
#log-results { font-size: 12px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 130; width: max-content; max-width: calc(100vw - 32px); padding: 13px 20px; background: #19352b; border: 1px solid #4c846b; border-radius: 10px; box-shadow: 0 8px 40px #0007; color: #dcf7e7; font: 600 14px/1.5 var(--body-font); }
.toast[hidden] { display: none; }
/* Entrée privée. */
.gate { min-height: 700px; min-height: 100dvh; }
.gate-image { background-size: auto 110%; background-color: #030405; }
.gate-shade { background: linear-gradient(0deg,#05080cf5 0%,#05080c70 55%,#05080c20),radial-gradient(ellipse at center,transparent,#0204089c); }
.gate-content { width: min(800px,90vw); padding: 260px 0 60px; }
.gate h1 { font-size: clamp(50px,7vw,90px); line-height: 1.02; letter-spacing: -.06em; }
.gate .intro { font: 400 16px/1.8 var(--body-font); max-width: 500px; margin: 24px auto; color: #b9c7d8; }
.gate-note { font: 400 12px/1.6 var(--body-font); margin-top: 20px; color: #9aaabd; }
@media (max-width: 1000px) {
  .app header { column-gap: 16px; }
  .member-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .welcome-mark { width: 112px; height: 112px; margin-right: 20px; }
  .member-quota-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .app header { padding: 0 16px; min-height: 154px; grid-template-columns: 1fr auto auto; grid-template-areas: 'brand online logout' 'account account account' 'nav nav nav'; gap: 0 12px; }
  .status { display: flex; font-size: 10px; max-width: 150px; }
  .brand img { width: 35px; height: 35px; }
  .brand .brand-text { font-size: 10px; letter-spacing: .05em; }
  .brand small { font-size: 8px; }
  .online-button { padding: 8px; font-size: 11px; }
  .logout { font-size: 11px; padding-left: 12px; }
  #nav { height: 54px; }
  #nav button { font-size: 13px; padding: 10px; }
  .dashboard { padding: 28px 16px 18px; }
  .title-row { align-items: flex-start; flex-wrap: wrap; gap: 18px; }
  .title-row .add { width: 100%; }
  .add { font-size: 14px; padding: 12px 18px; }
  .add:first-letter { font-size: inherit; }
  .section-description { font-size: 13px; }
  .cards { grid-template-columns: 1fr; gap: 12px; margin: 24px 0; }
  .card { padding: 20px; }
  .home-view .welcome-card { padding: 26px 24px; min-height: 295px; }
  .welcome-card h3 { font-size: 34px; }
  .welcome-mark { display: none; }
  .welcome-actions .add, .welcome-actions .secondary-button { padding: 11px 14px; font-size: 13px; }
  .quota-grid { grid-template-columns: 1fr; gap: 12px; }
  .quota-card { min-height: 180px; padding: 22px; }
  .quota-name { margin-bottom: 10px; }
  .quota-main strong { font-size: 42px; }
  .quota-daily { margin-top: 12px; padding-top: 12px; }
  .panel-head { padding: 17px 18px; }
  table { min-width: 620px; }
  .home-view table, .bilan-view table { min-width: 0; }
  th, td { padding: 15px 18px; }
  .member-heading { align-items: stretch; flex-direction: column; }
  .member-heading .search-field { width: 100%; }
  .member-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .member-card { padding: 16px; }
  .member-name { font-size: 16px; }
  .member-mark { font-size: 10px; }
  .heist-progress-grid, .member-quota-grid { grid-template-columns: 1fr; }
  .member-quota-title { display: block; line-height: 1.6; }
  .member-quota-title span { display: block; margin-top: 5px; }
  dialog form, .member-profile, .online-dialog-content { padding: 28px 22px; }
  dialog h3 { font-size: 28px; }
  .dialog-actions { position: sticky; bottom: 0; background: #141c26; padding: 14px 0; }
  .week-selector { flex-direction: column; align-items: stretch; gap: 10px; }
  .bilan-view #metrics { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: 1fr; }
  .history-row { grid-template-columns: 1fr; gap: 5px; }
  .log-toolbar { padding: 16px; flex-wrap: wrap; }
  .admin-toolbar { padding: 16px; align-items: stretch; flex-direction: column; }
  .admin-toolbar .search-field { width: 100%; }
  .admin-type-picker { width: 100%; }
  .admin-modes button { flex: 1; }
  .admin-note { padding: 0 16px 16px; }
  #admin-confirm-dialog .dialog-actions { flex-wrap: wrap; }
  .dashboard-footer { flex-wrap: wrap; font-size: 10px; }
  .gate-content { padding-top: 200px; }
}
@media (max-width: 380px) {
  .brand img { display: none; }
  .member-grid { grid-template-columns: 1fr; }
  .welcome-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none!important; transition: none!important; }
}
