:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f4f7;
  background: #09090d;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --red: #ef3e4a;
  --red-soft: #ff6973;
  --purple: #6f56d9;
  --orange: #f0a348;
  --green: #65d497;
  --panel: #14141b;
  --panel-2: #1a1a23;
  --line: #2c2c38;
  --muted: #9695a3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background:
  radial-gradient(circle at 76% 8%, rgba(111, 86, 217, .15), transparent 28rem),
  radial-gradient(circle at 10% 18%, rgba(239, 62, 74, .11), transparent 30rem), #09090d; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar { position: sticky; top: 0; z-index: 30; height: 74px; display: flex; align-items: center; gap: 28px; padding: 0 max(22px, calc((100vw - 1200px) / 2)); background: rgba(9, 9, 13, .82); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; background: var(--red); color: white; font-weight: 900; letter-spacing: -2px; border-radius: 7px 7px 11px 7px; box-shadow: 0 0 28px rgba(239,62,74,.25); }
.brand > span:last-child { display: grid; line-height: .95; letter-spacing: -.04em; }
.brand strong { font-size: 18px; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .34em; }
nav { display: flex; gap: 26px; color: #bab9c3; font-size: 14px; }
nav a:hover { color: white; }
.version-pill { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--muted); font-size: 11px; }

.section-shell { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.hero { min-height: 680px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 70px; padding-block: 74px; }
.eyebrow { margin: 0 0 18px; color: var(--red-soft); font-size: 11px; font-weight: 800; letter-spacing: .22em; }
h1 { max-width: 720px; margin: 0; font-size: clamp(48px, 6vw, 82px); line-height: .98; letter-spacing: -.065em; }
h1 em { color: var(--red-soft); font-style: normal; }
.hero-text { max-width: 650px; margin: 28px 0; color: #b0aeba; font-size: 18px; line-height: 1.7; }
.hero-actions, .toolbar, .send-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-weight: 750; font-size: 13px; transition: .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { background: var(--red); color: white; box-shadow: 0 10px 32px rgba(239,62,74,.18); }
.button.primary:hover:not(:disabled) { background: #ff4b57; }
.button.ghost { background: rgba(255,255,255,.03); border-color: var(--line); color: #dedde5; }
.button.subtle { margin-left: auto; background: transparent; color: var(--muted); }
.button.danger { background: #251318; border-color: #652833; color: #ff9ba4; }
.button.disabled, .button:disabled { cursor: not-allowed; opacity: .42; transform: none; }
.button.full { width: 100%; margin-top: 20px; }
.trust-row { display: flex; gap: 22px; margin-top: 28px; color: #858391; font-size: 12px; }

.synth-panel { position: relative; min-height: 440px; padding: 36px 31px 72px; border: 1px solid #34333f; border-radius: 22px 22px 36px 22px; transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); background: linear-gradient(145deg, #24242c, #101016 62%); box-shadow: 0 40px 100px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.09); overflow: hidden; }
.synth-panel::before { content: "ROLAND"; position: absolute; top: 16px; right: 24px; color: #9b9aa4; font-weight: 900; letter-spacing: .08em; }
.photo-panel { padding: 0; background: #0d0d11; min-height: 440px; }
.photo-panel::before { display: none; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center center; border-radius: inherit; }
.screen { width: 58%; height: 74px; margin: 8px 0 42px auto; display: grid; align-content: center; padding: 13px 16px; border: 6px solid #09090d; color: #b7ffcb; background: #163324; box-shadow: inset 0 0 16px #000; font-family: ui-monospace, monospace; }
.screen span { font-size: 10px; opacity: .7; }.screen b { font-size: 16px; letter-spacing: .08em; }
.slider-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 22px 10px; }
.slider-grid i { position: relative; height: 72px; border-radius: 2px; background: linear-gradient(90deg, #07070a, #292831 50%, #07070a); }
.slider-grid i::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: var(--v); height: 8px; border-radius: 2px; background: var(--red); box-shadow: 0 0 10px rgba(239,62,74,.5); }
.slider-grid i:nth-child(3n)::after { background: var(--purple); }.slider-grid i:nth-child(5n)::after { background: var(--orange); }
.keys { position: absolute; display: flex; height: 62px; left: 22px; right: 22px; bottom: 0; background: #ddd; }
.keys span { position: relative; flex: 1; border-right: 1px solid #999; background: linear-gradient(#f4f4f4, #c9c9c9); }
.keys span.black { z-index: 2; flex: .62; height: 38px; margin: 0 -3.5%; background: #101014; border: 0; box-shadow: 0 5px 5px rgba(0,0,0,.35); }

.block-section { padding-block: 86px; border-top: 1px solid rgba(255,255,255,.065); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 55px); letter-spacing: -.045em; }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.65; }

.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bank-card { display: grid; grid-template-columns: 210px 1fr; min-height: 300px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.025), transparent), var(--panel); overflow: hidden; }
.bank-art { display: grid; place-content: center; align-content: center; background: radial-gradient(circle at 30% 20%, rgba(239,62,74,.6), transparent 42%), linear-gradient(145deg, #5d2331, #1a142e 60%, #08080c); border-right: 1px solid var(--line); }
.bank-art span { font-size: 68px; font-weight: 900; letter-spacing: -.08em; }.bank-art small { text-align: center; letter-spacing: .25em; color: #cbc5dd; }
.bank-content { padding: 28px; }.bank-content h3 { margin: 12px 0 4px; font-size: 23px; letter-spacing: -.025em; }.bank-content > p { color: var(--muted); line-height: 1.5; font-size: 14px; }
.bank-author { margin-top: 0; color: #d9d8df !important; }.bank-state { display: inline-block; padding: 5px 8px; border-radius: 5px; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.bank-state.draft { color: #ffc98a; background: #332313; }.bank-state.published { color: #8ff0b6; background: #153022; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }.tag-row span, .candidate-list > span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #bbb9c5; font-size: 11px; }
.loading-card, .error-card { padding: 30px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }

.drop-zone { display: grid; place-items: center; min-height: 310px; padding: 30px; border: 1px dashed #4a4858; border-radius: 20px; text-align: center; cursor: pointer; background: rgba(255,255,255,.018); outline: none; transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragging, .drop-zone:focus-visible { border-color: var(--red); background: rgba(239,62,74,.045); box-shadow: inset 0 0 80px rgba(239,62,74,.03); }
.drop-zone.is-loading { pointer-events: none; opacity: .65; }.drop-icon { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #4d4b59; border-radius: 50%; color: var(--red-soft); font-size: 31px; }
.drop-zone h3 { margin: 20px 0 4px; font-size: 26px; }.drop-zone h3 span { color: var(--red-soft); }.drop-zone p { margin: 0; color: var(--muted); }.drop-zone small { margin-top: 18px; color: #656471; }
.random-bank-generator { position: relative; margin-top: 18px; padding: 28px; border: 1px solid #5a2730; border-radius: 18px; background: radial-gradient(circle at top left, rgba(239,62,74,.14), transparent 32%), linear-gradient(145deg, rgba(255,255,255,.025), transparent), var(--panel); display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; box-shadow: 0 18px 45px rgba(0,0,0,.24), inset 0 0 0 1px rgba(239,62,74,.06); }
.random-bank-generator.featured::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); }
.random-bank-heading { max-width: 720px; display: grid; gap: 10px; }
.random-bank-heading strong { font-size: 24px; letter-spacing: -.03em; }
.random-bank-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.random-bank-heading .random-tagline { color: #f3d7da; font-size: 15px; font-weight: 700; }
.random-feature-badge { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 5px 10px; border: 1px solid rgba(239,62,74,.35); border-radius: 999px; background: rgba(239,62,74,.12); color: #ffadb4; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.random-category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.random-pill { padding: 8px 12px; border: 1px solid #4f3a40; border-radius: 999px; background: rgba(255,255,255,.03); color: #d8d5df; font-size: 12px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.random-pill:hover { border-color: #8b434f; background: rgba(239,62,74,.08); transform: translateY(-1px); }
.random-pill.is-active { border-color: rgba(239,62,74,.65); background: linear-gradient(180deg, rgba(239,62,74,.95), rgba(205,43,60,.92)); color: white; box-shadow: 0 10px 24px rgba(239,62,74,.22); }
.random-bank-controls { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; align-items: end; }
.random-bank-controls label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #c1bec9; }
.random-bank-controls select { min-width: 220px; padding: 11px 12px; border: 1px solid #5a4246; border-radius: 10px; background: #18171f; color: #efeef4; font-size: 13px; box-shadow: inset 0 1px rgba(255,255,255,.04); }
.random-generate-button { grid-column: 1 / -1; min-height: 50px; font-size: 14px; letter-spacing: .01em; }
.random-bank-controls button:disabled { opacity: .6; cursor: wait; }
.jd990-converter { position: relative; margin-top: 18px; padding: 25px 28px; border: 1px solid #3e4668; border-radius: 18px; background: radial-gradient(circle at 8% 10%, rgba(111,86,217,.14), transparent 30%), linear-gradient(145deg, rgba(255,255,255,.025), transparent), var(--panel); display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: 18px 28px; align-items: center; }

.jd990-converter.dragging { border-color: #a891ff; background: radial-gradient(circle at 8% 10%, rgba(111,86,217,.26), transparent 38%), linear-gradient(145deg, rgba(255,255,255,.04), transparent), var(--panel); box-shadow: 0 0 0 2px rgba(154,135,255,.18), 0 20px 55px rgba(74,52,167,.22); }
.jd990-converter.dragging::after { content: "LÂCHE LE FICHIER JD-990 ICI"; position: absolute; inset: 10px; z-index: 20; display: grid; place-items: center; border: 2px dashed #b6a6ff; border-radius: 14px; background: rgba(21,17,40,.88); color: #f4f0ff; font-size: clamp(20px, 3vw, 34px); font-weight: 900; letter-spacing: .03em; text-align: center; pointer-events: none; backdrop-filter: blur(4px); }
.jd990-converter-heading { display: grid; gap: 8px; max-width: 780px; }.jd990-converter-heading strong { font-size: 21px; letter-spacing: -.025em; }.jd990-converter-heading p { margin: 0; color: #c1bfcb; font-size: 13px; line-height: 1.55; }.jd990-converter-heading small { color: #858391; line-height: 1.5; }
.converter-badge { width: fit-content; padding: 5px 9px; border: 1px solid rgba(111,86,217,.5); border-radius: 999px; background: rgba(111,86,217,.12); color: #c8bdff; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.jd990-drop-zone { grid-row: span 2; min-height: 190px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 22px; border: 1px dashed #655c9c; border-radius: 15px; background: rgba(111,86,217,.045); color: #e7e3fa; text-align: center; cursor: pointer; outline: none; transition: .18s ease; }
.jd990-drop-zone:hover, .jd990-drop-zone:focus-visible, .jd990-drop-zone.dragging { border-color: #9a87ff; background: rgba(111,86,217,.12); box-shadow: inset 0 0 65px rgba(111,86,217,.07), 0 0 28px rgba(111,86,217,.10); transform: translateY(-1px); }
.jd990-drop-zone.is-loading { pointer-events: none; opacity: .62; }
.jd990-drop-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid #685ca1; border-radius: 50%; background: rgba(111,86,217,.08); color: #c9bfff; font-size: 26px; }
.jd990-drop-zone > strong { font-size: 15px; }.jd990-drop-zone > span { color: #aaa4c8; font-size: 12px; }.jd990-drop-zone > small { color: #77718f; font-size: 10px; }
.jd990-converter-actions { display: flex; gap: 9px; flex-wrap: wrap; }.jd990-converter-actions .button { flex: 1; min-width: 220px; }.converter-primary { background: #6f56d9; color: white; box-shadow: 0 10px 30px rgba(111,86,217,.18); }.converter-primary:hover:not(:disabled) { background: #8169e5; }
.jd990-conversion-report { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }.converter-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }.converter-summary span { display: grid; gap: 4px; padding: 12px; border: 1px solid #34364a; border-radius: 9px; background: rgba(0,0,0,.18); }.converter-summary small { color: #77758a; font-size: 8px; font-weight: 900; letter-spacing: .12em; }.converter-summary strong { font-size: 12px; }.converter-success { color: #8ff0b6; font-weight: 700; }.converter-error { color: #ff9ba4; font-weight: 700; }.jd990-conversion-report details { margin-top: 12px; color: #aaa8b5; font-size: 12px; }.jd990-conversion-report summary { cursor: pointer; color: #d5d1e8; }.jd990-conversion-report li { margin: 6px 0; line-height: 1.45; }.converter-credit { display: block; margin-top: 12px; color: #676575; }

.jd08-converter { position: relative; margin-top: 18px; padding: 25px 28px; border: 1px solid #28616a; border-radius: 18px; background: radial-gradient(circle at 8% 10%, rgba(51,190,199,.13), transparent 32%), linear-gradient(145deg, rgba(255,255,255,.025), transparent), var(--panel); display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: 18px 28px; align-items: center; }
.jd08-converter.dragging { border-color: #63e3e8; background: radial-gradient(circle at 8% 10%, rgba(51,190,199,.25), transparent 40%), linear-gradient(145deg, rgba(255,255,255,.04), transparent), var(--panel); box-shadow: 0 0 0 2px rgba(99,227,232,.16), 0 20px 55px rgba(24,132,141,.22); }
.jd08-converter.dragging::after { content: "LÂCHE LE BACKUP JD-08 .SVD ICI"; position: absolute; inset: 10px; z-index: 20; display: grid; place-items: center; border: 2px dashed #78edf0; border-radius: 14px; background: rgba(11,34,37,.90); color: #eaffff; font-size: clamp(20px, 3vw, 34px); font-weight: 900; letter-spacing: .03em; text-align: center; pointer-events: none; backdrop-filter: blur(4px); }
.jd08-converter-heading { display: grid; gap: 8px; max-width: 780px; }.jd08-converter-heading strong { font-size: 21px; letter-spacing: -.025em; }.jd08-converter-heading p { margin: 0; color: #c0cfd0; font-size: 13px; line-height: 1.55; }.jd08-converter-heading small { color: #80989a; line-height: 1.5; }
.jd08-badge { width: fit-content; padding: 5px 9px; border: 1px solid rgba(51,190,199,.52); border-radius: 999px; background: rgba(51,190,199,.10); color: #9af2f4; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.jd08-drop-zone { grid-row: span 2; min-height: 190px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 22px; border: 1px dashed #397f85; border-radius: 15px; background: rgba(51,190,199,.04); color: #e4f6f7; text-align: center; cursor: pointer; outline: none; transition: .18s ease; }
.jd08-drop-zone:hover, .jd08-drop-zone:focus-visible, .jd08-drop-zone.dragging { border-color: #63dce1; background: rgba(51,190,199,.10); box-shadow: inset 0 0 65px rgba(51,190,199,.06), 0 0 28px rgba(51,190,199,.09); transform: translateY(-1px); }
.jd08-drop-zone.is-loading { pointer-events: none; opacity: .62; }
.jd08-drop-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid #438a90; border-radius: 50%; background: rgba(51,190,199,.07); color: #8ee9ec; font-size: 26px; }
.jd08-drop-zone > strong { font-size: 15px; }.jd08-drop-zone > span { color: #9ebfc1; font-size: 12px; }.jd08-drop-zone > small { color: #64888a; font-size: 10px; }
.jd08-converter-actions { display: flex; gap: 9px; flex-wrap: wrap; }.jd08-converter-actions .button { flex: 1; min-width: 220px; }.jd08-primary { background: #238e96; color: white; border-color: #319da5; box-shadow: 0 10px 30px rgba(35,142,150,.18); }.jd08-primary:hover:not(:disabled) { background: #2da2ab; }
.jdcloud-converter { border-color: #536475; background: radial-gradient(circle at 8% 10%, rgba(111,132,151,.15), transparent 34%), linear-gradient(145deg, rgba(255,255,255,.025), transparent), var(--panel); }
.jdcloud-converter.dragging { border-color: #9aabba; background: radial-gradient(circle at 8% 10%, rgba(111,132,151,.27), transparent 42%), linear-gradient(145deg, rgba(255,255,255,.04), transparent), var(--panel); box-shadow: 0 0 0 2px rgba(154,171,186,.15), 0 20px 55px rgba(36,47,58,.24); }
.jdcloud-converter.dragging::after { content: "LÂCHE LA BANQUE JD-800 .SYX ICI"; border-color: #aebdca; background: rgba(20,26,31,.92); color: #f1f4f6; }
.jdcloud-badge { width: fit-content; padding: 5px 9px; border: 1px solid rgba(154,171,186,.56); border-radius: 999px; background: rgba(111,132,151,.13); color: #cad4dc; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.jdcloud-primary { background: #596d7e; color: white; border-color: #6e8293; box-shadow: 0 10px 30px rgba(48,61,72,.2); }
.jdcloud-primary:hover:not(:disabled) { background: #687e90; }
.jd08-conversion-report { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.jd08-export-converter { margin-top: 18px; padding: 25px 28px; border: 1px solid #a46224; border-radius: 18px; background: radial-gradient(circle at 8% 8%, rgba(242,143,44,.17), transparent 34%), linear-gradient(145deg, rgba(255,255,255,.025), transparent), var(--panel); display: grid; gap: 20px; }
.jd08-export-heading { max-width: none; }.jd08-export-badge { width: fit-content; padding: 5px 9px; border: 1px solid rgba(242,143,44,.58); border-radius: 999px; background: rgba(242,143,44,.11); color: #ffc17d; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.jd08-export-files { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.jd08-export-file-zone { min-height: 160px; display: grid; align-content: center; gap: 10px; padding: 20px; border: 1px dashed #8b5b31; border-radius: 14px; background: rgba(242,143,44,.035); cursor: pointer; outline: none; transition: .18s ease; }
.jd08-export-file-zone:hover, .jd08-export-file-zone:focus-visible, .jd08-export-file-zone.dragging { border-color: #f29a46; background: rgba(242,143,44,.09); transform: translateY(-1px); box-shadow: 0 0 30px rgba(242,143,44,.09); }
.jd08-export-file-zone.is-ready { border-style: solid; border-color: #718b4d; background: rgba(148,183,82,.055); }.jd08-export-file-zone > small { color: #d28b47; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }.jd08-export-file-zone > strong { font-size: 14px; }.jd08-export-file-zone > span { color: #a79d92; font-size: 11px; overflow-wrap: anywhere; }.jd08-export-file-zone.is-ready > span { color: #b9dc89; }
.jd08-export-primary { background: #bd6d24; color: white; border-color: #d98130; box-shadow: 0 10px 28px rgba(164,91,28,.2); }.jd08-export-primary:hover:not(:disabled) { background: #d07c2d; }
.jd08-export-actions { display: grid; grid-template-columns: minmax(150px,.42fr) minmax(230px,1fr) minmax(230px,1fr); gap: 10px; align-items: end; }.jd08-export-actions label { display: grid; gap: 7px; color: #a9a197; font-size: 10px; font-weight: 800; letter-spacing: .06em; }.jd08-export-actions select { min-height: 42px; padding: 0 12px; border: 1px solid #60462f; border-radius: 9px; background: #17130f; color: #ffd0a1; font-weight: 900; }.jd08-export-actions .button { min-height: 42px; }
.jd08-export-note { margin: -5px 0 0; color: #897d70; font-size: 11px; }.jd08-export-converter .jd08-conversion-report { padding-top: 18px; }
.jd08-bank-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.jd08-bank-card { display: grid; gap: 12px; padding: 16px; border: 1px solid #2e4b4f; border-radius: 12px; background: rgba(0,0,0,.16); }.jd08-bank-card.has-patches { border-color: #31727a; background: radial-gradient(circle at 0 0, rgba(51,190,199,.08), transparent 55%), rgba(0,0,0,.16); }.jd08-bank-card.is-empty { opacity: .55; }
.jd08-bank-card > div:first-child { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: baseline; }.jd08-bank-card > div:first-child small { grid-row: 1 / 3; color: #6d9496; font-size: 8px; font-weight: 900; letter-spacing: .12em; }.jd08-bank-card > div:first-child strong { color: #b7fbfd; font-size: 25px; }.jd08-bank-card > div:first-child span { color: #8ca9ab; font-size: 11px; }
.jd08-bank-meta { color: #719294; font-size: 10px; }.jd08-bank-actions { display: flex; gap: 8px; flex-wrap: wrap; }.jd08-bank-actions .button { flex: 1; min-width: 150px; }

.empty-state { padding: 20px; color: #62616d; text-align: center; }.hidden { display: none !important; }
.analysis-result { margin-top: 28px; }
.status-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 25px; border: 1px solid; border-radius: 14px; }
.status-banner > div { display: grid; gap: 5px; }.status-banner strong { font-size: 18px; }.status-banner span { color: #bcbac5; }.status-banner.valid-jd800 { border-color: #285d42; background: #10261b; }.status-banner.mixed { border-color: #725122; background: #2b2111; }.status-banner.not-jd800, .status-banner.invalid { border-color: #6a2b36; background: #291218; }
.status-symbol { display: grid; place-items: center; min-width: 37px; height: 37px; border-radius: 50%; background: rgba(255,255,255,.08); font-weight: 900; font-size: 20px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }.summary-grid article { min-width: 0; display: grid; gap: 7px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }.summary-grid small { color: #706e7c; letter-spacing: .15em; }.summary-grid strong { overflow: hidden; text-overflow: ellipsis; font-size: 22px; }.summary-grid span { color: var(--muted); font-size: 12px; }
.toolbar { margin: 16px 0 20px; }
.analysis-columns { display: grid; grid-template-columns: 1.45fr .55fr; gap: 18px; }
.analysis-columns.analysis-columns-single { grid-template-columns: minmax(0, 1fr); }
.panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }.panel-heading h3 { margin: 0; }.panel-heading > span { color: var(--muted); font-size: 12px; }
.table-wrap { max-height: 440px; overflow: auto; border: 1px solid #272731; border-radius: 9px; }table { width: 100%; border-collapse: collapse; font-size: 12px; }th { position: sticky; top: 0; z-index: 1; background: #1d1d26; color: #807e8a; text-align: left; letter-spacing: .08em; font-size: 10px; }th, td { padding: 11px 12px; border-bottom: 1px solid #282731; white-space: nowrap; }tbody tr:hover { background: rgba(255,255,255,.025); }.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }.byte-preview { max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: #aaa8b4; }.muted { color: var(--muted); }.check { font-weight: 800; }.check.ok { color: var(--green); }.check.bad { color: #ff8e98; }.type-chip { display: inline-block; min-width: 46px; padding: 4px 6px; border-radius: 5px; text-align: center; background: #292833; }.type-chip.dt1 { color: #ff9da5; background: #37181e; }.type-chip.rq1 { color: #b9a9ff; background: #241e44; }
.candidate-list { display: flex; flex-wrap: wrap; gap: 7px; }.panel-note { color: #74727f; line-height: 1.55; font-size: 12px; }.warning-list { width: 100%; margin-top: 18px; padding: 14px; border-radius: 9px; background: #2b2111; color: #d7b277; }.warning-list p { margin: 7px 0 0; }

.diagnostic-banner { display: grid; gap: 5px; margin-bottom: 16px; padding: 14px 18px; border: 1px solid #2c6548; border-radius: 12px; background: #10251b; } .diagnostic-banner strong { color: #8ff0b6; } .diagnostic-banner span { color: #9eaca3; font-size: 12px; line-height: 1.5; }
.midi-routing-title { color: #ff8f97; font-size: 11px; font-weight: 900; letter-spacing: .16em; } .midi-main-grid-prominent { padding: 14px; border: 1px solid #66404a; border-radius: 12px; background: #211318; } .prominent-field { color: #fff !important; font-size: 13px !important; font-weight: 800; } .prominent-field select { min-height: 50px; border-color: #76515a; font-size: 15px; font-weight: 800; } .channel-field select { border-color: #9a5964; background: #1a0f13; } .transfer-status { margin: 0; padding: 12px 14px; border: 1px solid #383744; border-radius: 9px; color: #d8d6df; background: #101016; font-size: 12px; line-height: 1.5; }
.midi-layout { display: grid; grid-template-columns: .7fr 1.1fr 1.2fr; gap: 18px; }.midi-connect-panel { display: flex; flex-direction: column; justify-content: center; gap: 20px; }.midi-status-row { display: flex; align-items: center; gap: 10px; }.midi-light { width: 10px; height: 10px; border-radius: 50%; background: #5b5966; box-shadow: 0 0 0 5px rgba(255,255,255,.025); }.midi-light.connected { background: var(--green); box-shadow: 0 0 16px rgba(101,212,151,.6); }.midi-controls { display: grid; gap: 17px; }.midi-controls label { display: grid; gap: 8px; color: #a4a2ae; font-size: 12px; }.midi-controls label small { color: #6f6d79; line-height: 1.4; }.midi-main-grid, .midi-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.midi-selection-summary { display: grid; grid-template-columns: 1.5fr .65fr .85fr; gap: 8px; padding: 10px; border: 1px solid #36333f; border-radius: 9px; background: #0f0f15; }.midi-selection-summary span { min-width: 0; display: grid; gap: 3px; padding: 7px 9px; border-radius: 7px; background: #17171f; }.midi-selection-summary small { color: #777482; font-size: 9px; letter-spacing: .11em; }.midi-selection-summary strong { overflow: hidden; color: #f2f1f6; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.test-row { display: flex; flex-wrap: wrap; gap: 10px; }.test-row .button { flex: 1; }.sysex-info { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid #40374f; border-radius: 9px; background: #17131f; }.sysex-info strong { color: #c3b6ff; font-size: 12px; }.sysex-info span { color: #8c8997; font-size: 11px; line-height: 1.5; }select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; color: #e9e8ee; background: #0e0e14; }select:disabled { opacity: .45; }.delay-control { display: flex; align-items: center; gap: 14px; }.delay-control input { flex: 1; accent-color: var(--red); }.delay-control output { min-width: 54px; color: white; }.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #282731; }.progress-track span { display: block; width: 0; height: 100%; background: var(--red); transition: width .12s linear; }.midi-log-panel pre { height: 230px; margin: 0; overflow: auto; white-space: pre-wrap; color: #a9e9ba; font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }.text-button { padding: 0; border: 0; color: var(--muted); background: none; cursor: pointer; }
footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(22px, calc((100vw - 1200px) / 2)); border-top: 1px solid rgba(255,255,255,.07); color: #65636f; font-size: 12px; }footer strong { color: #aaa8b3; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }.synth-panel { min-height: 380px; transform: none; } .photo-panel { min-height: 380px; padding: 0; }.analysis-columns, .midi-layout { grid-template-columns: 1fr; }.summary-grid { grid-template-columns: repeat(2, 1fr); }.midi-main-grid, .midi-settings-grid, .midi-selection-summary { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .topbar nav { display: none; }.section-shell { width: min(100% - 24px, 1200px); }.hero { min-height: auto; padding-top: 55px; gap: 45px; }.hero-text { font-size: 16px; }.trust-row { flex-direction: column; gap: 8px; }.synth-panel { min-height: 330px; padding-inline: 20px; } .photo-panel { min-height: 330px; padding: 0; }.slider-grid { gap: 16px 6px; }.section-heading { align-items: start; flex-direction: column; }.bank-card { grid-template-columns: 1fr; }.bank-art { min-height: 170px; border-right: 0; border-bottom: 1px solid var(--line); }.summary-grid { grid-template-columns: 1fr 1fr; }.summary-grid article:first-child { grid-column: 1 / -1; }.toolbar .button { flex: 1; }.button.subtle { margin-left: 0; }.drop-zone { min-height: 260px; }.screen { width: 75%; }.random-bank-generator { padding: 22px; }.random-bank-heading strong { font-size: 22px; }.random-bank-controls { grid-template-columns: 1fr; width: 100%; }.random-bank-controls select, .random-generate-button { width: 100%; min-width: 0; }.block-section { padding-block: 65px; }footer { align-items: flex-start; flex-direction: column; justify-content: center; }
  .jd990-converter { grid-template-columns: 1fr; padding: 22px; }.jd990-drop-zone { grid-row: auto; min-height: 170px; }.jd990-converter-actions { min-width: 0; }.converter-summary { grid-template-columns: 1fr 1fr; }
}

.bank-transfer-analysis { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 20px; margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.bank-transfer-analysis > div:first-child { display: grid; gap: 6px; }
.bank-transfer-analysis small { color: #777482; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.bank-transfer-analysis strong { font-size: 15px; line-height: 1.45; }
.bank-transfer-analysis span { color: var(--muted); font-size: 12px; }
.bank-transfer-analysis.ready { border-color: #2d714f; background: #10251b; }
.bank-transfer-analysis.partial { border-color: #725122; background: #2b2111; }
.bank-transfer-analysis.blocked { border-color: #6a2b36; background: #291218; }
.bank-analysis-state { min-width: 110px; padding: 10px 12px; border-radius: 8px; text-align: center; background: rgba(255,255,255,.07); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.bank-analysis-warnings { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); color: #d7b277; font-size: 12px; }
.bank-analysis-warnings p { margin: 5px 0; }
.bank-receive-checklist span { line-height: 1.75; }
.reload-option { display: flex !important; grid-template-columns: auto 1fr; align-items: center; justify-content: start; gap: 9px !important; padding: 11px 13px; border: 1px solid #373641; border-radius: 9px; background: #111117; color: #d8d6df !important; }
.reload-option input { width: 17px; height: 17px; accent-color: var(--red); }

@media (max-width: 650px) {
  .bank-transfer-analysis { grid-template-columns: 1fr; }
  .bank-analysis-state { justify-self: start; }
}

/* V0.6 · Patch Organizer */
.organizer-workspace { display: grid; gap: 18px; }
.organizer-toolbar { display: grid; grid-template-columns: 1fr minmax(220px, .7fr) auto; gap: 16px; align-items: end; }
.organizer-bank-title { min-width: 0; display: grid; gap: 5px; }
.organizer-bank-title small { color: #777482; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.organizer-bank-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.organizer-modified { justify-self: start; padding: 4px 7px; border-radius: 5px; color: #8ff0b6; background: #153022; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.organizer-modified.changed { color: #ffd09a; background: #382516; }
.organizer-search { display: grid; gap: 7px; color: #a4a2ae; font-size: 11px; }
.organizer-search input, .patch-editor-panel input[type="text"], #patch-name-input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; color: #f0eff4; background: #0e0e14; outline: none; }
.organizer-search input:focus, #patch-name-input:focus { border-color: #7f4a53; box-shadow: 0 0 0 3px rgba(239,62,74,.08); }
.organizer-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.organizer-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .55fr); gap: 18px; align-items: start; }
.organizer-bank-panel { min-height: 660px; }
.patch-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.patch-card { min-width: 0; min-height: 86px; display: grid; align-content: center; gap: 5px; padding: 14px 10px 10px; border: 1px solid #31303b; border-radius: 9px; color: #e9e8ee; background: linear-gradient(145deg, rgba(255,255,255,.02), transparent), #101016; text-align: left; cursor: grab; transition: .16s ease; }
.patch-card:hover { border-color: #5f4650; background: #181218; transform: translateY(-1px); }
.patch-card.selected { border-color: var(--red); background: #251318; box-shadow: inset 0 0 0 1px rgba(239,62,74,.2), 0 0 20px rgba(239,62,74,.08); }
.patch-card.dragging { opacity: .38; }
.patch-card.drop-target { border-color: var(--orange); background: #2a2014; }
.patch-card.filtered { display: none; }
.patch-card small { color: var(--red-soft); font: 800 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.patch-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; letter-spacing: -.01em; }
.patch-card span { overflow: hidden; color: #666571; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.patch-editor-panel { position: sticky; top: 92px; display: grid; gap: 18px; }
.patch-editor-panel label { display: grid; gap: 8px; color: #aaa8b3; font-size: 11px; }
.patch-display { display: grid; gap: 5px; min-height: 92px; align-content: center; padding: 18px; border: 1px solid #483039; border-radius: 12px; background: radial-gradient(circle at 12% 20%, rgba(239,62,74,.17), transparent 55%), #100d11; }
.patch-display small { color: var(--red-soft); font: 900 11px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .15em; }
.patch-display strong { font-size: 25px; letter-spacing: -.03em; }
.preview-box { display: grid; gap: 10px; padding: 15px; border: 1px solid #3f3850; border-radius: 11px; background: #15121d; }
.preview-box > strong { color: #c9bdff; font-size: 12px; }
.preview-box > span { color: #858290; font-size: 10px; line-height: 1.5; }
.preview-settings { display: grid; gap: 10px; }
.preview-settings label:first-child { display: grid; grid-template-columns: 70px 1fr; align-items: center; }
.preview-settings input[type="range"] { width: 100%; accent-color: var(--red); }
.preview-settings label:last-child { display: flex; align-items: center; gap: 8px; }
.preview-settings input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--red); }
.patch-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.patch-meta span { display: grid; gap: 4px; padding: 10px; border: 1px solid #2e2d37; border-radius: 8px; background: #101016; }
.patch-meta small { color: #696774; font-size: 8px; letter-spacing: .12em; }
.patch-meta strong { color: #c8c6d0; font-size: 10px; }
.empty-state.compact { padding: 12px; }

@media (max-width: 1050px) {
  .organizer-toolbar { grid-template-columns: 1fr 1fr; }
  .organizer-actions { grid-column: 1 / -1; justify-content: start; }
  .organizer-layout { grid-template-columns: 1fr; }
  .patch-editor-panel { position: static; }
  .patch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .organizer-toolbar { grid-template-columns: 1fr; }
  .organizer-actions { grid-column: auto; }
  .organizer-actions .button { flex: 1 1 140px; }
  .patch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .patch-card { min-height: 72px; }
}


/* Liste des noms de patches (styles historiques, conservés pour compatibilité) */
.candidate-list.patch-name-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.detected-patch-name {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.detected-patch-name small {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent, #ef5b42);
  font-size: 10px;
  letter-spacing: .05em;
}
.detected-patch-name strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e9e8ee;
  font-size: 12px;
  font-weight: 600;
}
.candidate-list.patch-name-list .warning-list {
  grid-column: 1 / -1;
}

/* V0.7 · Community publish + advanced preview */
.community-button { border-color: #625146 !important; color: #ffd0a0 !important; background: #211a14 !important; }
.publish-panel { display: grid; gap: 15px; border-color: #4a3a2d; background: radial-gradient(circle at 85% 0%, rgba(240,140,60,.08), transparent 32%), var(--panel); }
.publish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.publish-grid label { display: grid; gap: 7px; color: #aaa8b3; font-size: 11px; }
.publish-grid .wide { grid-column: 1 / -1; }
.publish-grid input, .publish-grid textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 9px; color: #f0eff4; background: #0e0e14; outline: none; font: inherit; resize: vertical; }
.publish-grid input:focus, .publish-grid textarea:focus { border-color: #8b5d3c; box-shadow: 0 0 0 3px rgba(240,140,60,.08); }
.publish-grid code { color: #ffd0a0; }
.admin-token-field small { color: #706e79; line-height: 1.45; }
.rights-confirm { display: flex !important; grid-template-columns: auto 1fr; align-items: center; justify-content: start; gap: 9px !important; padding: 11px 12px; border: 1px solid #38343d; border-radius: 9px; background: #111117; }
.rights-confirm input { width: 17px; height: 17px; accent-color: var(--red); }
.publish-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.publish-status { color: #8f8c98; font-size: 11px; }
.publish-status.success { color: #8ff0b6; }
.publish-status.error { color: #ff9aa4; }
.download-count { margin: -4px 0 8px !important; color: #777482 !important; font-size: 10px !important; }

.preview-type-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.preview-type { min-height: 34px; border: 1px solid #36333f; border-radius: 7px; color: #8c8997; background: #0f0e14; font: 800 9px inherit; letter-spacing: .05em; cursor: pointer; }
.preview-type:hover { border-color: #5c5268; color: #d2cadc; }
.preview-type.active { border-color: #7e567e; color: #f1ddff; background: #26162b; box-shadow: inset 0 0 0 1px rgba(203,151,222,.08); }
.arpeggio-pattern-row { display: grid !important; gap: 6px !important; color: #aaa8b3; font-size: 10px; }
.arpeggio-pattern-row select { min-height: 36px; font-size: 10px; }
.advanced-preview-settings { display: grid; gap: 9px; }
.advanced-preview-settings label { display: grid !important; grid-template-columns: 1fr !important; gap: 5px !important; }
.advanced-preview-settings label > span { display: flex; justify-content: space-between; align-items: center; color: #a4a0ae; font-size: 10px; }
.advanced-preview-settings output { color: #e2d8ea; font: 800 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.custom-notes-row { display: grid; gap: 6px; color: #a4a0ae; font-size: 10px; }
.custom-notes-row input { min-height: 36px; border: 1px solid #3d3947; border-radius: 7px; padding: 0 9px; color: #efedf4; background: #0e0e14; outline: none; }
.custom-notes-row small { color: #6f6c79; font-size: 8px; }
.auto-preview-row { display: flex !important; align-items: center; gap: 8px !important; color: #aaa8b3; font-size: 10px; }
.auto-preview-row input { width: 16px; height: 16px; accent-color: var(--red); }

@media (max-width: 650px) {
  .publish-grid { grid-template-columns: 1fr; }
  .publish-grid .wide { grid-column: auto; }
  .publish-actions .button { width: 100%; }
}

/* V0.7.21 · bibliothèque 5 colonnes + interface FR/EN */
.catalog-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.bank-card.bank-card-compact {
  min-height: 0;
  grid-template-columns: 54px minmax(0, 1fr);
  border-radius: 11px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.018), transparent), #111118;
}
.bank-art.bank-art-compact {
  min-height: 108px;
  border-right: 1px solid var(--line);
  background: radial-gradient(circle at 30% 20%, rgba(239,62,74,.45), transparent 46%), linear-gradient(145deg, #431b25, #171322 65%, #09090d);
}
.bank-art.bank-art-compact span {
  font-size: 27px;
  letter-spacing: -.06em;
}
.bank-art.bank-art-compact small {
  margin-top: 2px;
  font-size: 6px;
  letter-spacing: .16em;
}
.bank-content.bank-content-compact {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 10px 11px;
}
.bank-title-line {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px;
}
.bank-title-copy { min-width: 0; }
.bank-content.bank-content-compact h3 {
  overflow: hidden;
  margin: 0 0 2px;
  color: #f0eff4;
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bank-content.bank-content-compact .bank-author {
  overflow: hidden;
  margin: 0;
  color: #8b8995 !important;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bank-content.bank-content-compact .bank-state {
  padding: 3px 5px;
  font-size: 7px;
  letter-spacing: .06em;
}
.bank-description-compact {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 !important;
  color: #73717e !important;
  font-size: 9px !important;
  line-height: 1.25 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.bank-bottom-line {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bank-mini-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.bank-mini-meta span {
  max-width: 76px;
  overflow: hidden;
  padding: 3px 5px;
  border: 1px solid #2d2c36;
  border-radius: 999px;
  color: #8f8d98;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bank-mini-meta small {
  flex: none;
  color: #65636f;
  font-size: 7px;
}
.button.bank-download-compact {
  flex: none;
  min-height: 27px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 8px;
  box-shadow: none;
}

@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr; gap: 8px; }
  .bank-card.bank-card-compact { grid-template-columns: 58px minmax(0, 1fr); }
  .bank-art.bank-art-compact { min-height: 94px; border-right: 1px solid var(--line); border-bottom: 0; }
  .bank-content.bank-content-compact { padding: 9px 10px; }
}

/* V0.7.7 - visible admin moderation */
.admin-nav-link { color: #ffd0a0 !important; }
.admin-section { scroll-margin-top: 90px; }
.admin-login-panel { padding: 18px; margin-bottom: 20px; }
.admin-login-row { display: grid; grid-template-columns: minmax(240px,1fr) auto auto; gap: 12px; align-items: end; }
.admin-login-row label { display: grid; gap: 7px; color: #aaa8b3; font-size: 11px; }
.admin-login-row input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px; color: #f0eff4; background: #0e0e14; outline: none; font: inherit; }
.admin-status { margin: 12px 0 0; color: #8f8c98; font-size: 12px; }
.admin-status.success { color: #8ff0b6; }
.admin-status.error { color: #ff9aa4; }
.admin-workspace { display: grid; gap: 14px; }
.admin-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-section-title h3 { margin: 3px 0 0; }
.moderation-list { display: grid; gap: 10px; }
.moderation-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.moderation-status { margin-bottom: 6px; color: #ffc98a; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.moderation-main h3 { margin: 0 0 5px; font-size: 17px; }
.moderation-main p { margin: 4px 0; color: #aaa8b3; font-size: 12px; line-height: 1.45; }
.moderation-main small { color: #777582; }
.moderation-actions { min-width: 118px; display: grid; align-content: center; gap: 7px; }
.admin-patch-preview { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.admin-patch-preview span { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; color: #85838f; font-size: 9px; background: rgba(255,255,255,.025); }
@media (max-width: 760px) {
  .admin-login-row { grid-template-columns: 1fr; }
  .moderation-card { grid-template-columns: 1fr; }
  .moderation-actions { grid-template-columns: repeat(3,1fr); }
}

.admin-session-hint {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
}

/* V0.7.11 - moderation obligatoire */
.publish-moderation-note { margin: 0; padding: 9px 11px; border: 1px solid #4a3a2d; border-radius: 8px; color: #ffc98a; background: rgba(240,140,60,.06); font-size: 11px; }

/* V0.7.15 · sélection multiple + Custom Bank Builder */
.patch-selection-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #30303a;
  border-radius: 9px;
  background: #0d0d13;
}
.patch-selection-toolbar > div:first-child { display: grid; gap: 3px; }
.patch-selection-toolbar strong { color: #f3f1f5; font-size: 11px; }
.patch-selection-toolbar small { color: #74727f; font-size: 9px; }
.patch-selection-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.patch-selection-actions .button { padding: 8px 10px; font-size: 9px; }
.patch-card { position: relative; }
.patch-card.multi-selected { border-color: #6e66da; box-shadow: inset 0 0 0 1px rgba(124,113,255,.22); }
.patch-card .patch-check {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 4;
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #575667;
  border-radius: 8px;
  color: #f2f1f7;
  background: #20202a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03);
}
.patch-card .patch-check.checked { color: #fff; border-color: #8e86ff; background: #5b54c4; box-shadow: 0 0 0 1px rgba(142,134,255,.18), 0 0 10px rgba(91,84,196,.25); }
.patch-card .patch-origin { overflow: hidden; color: #666571; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.custom-bank-builder { display: grid; gap: 16px; margin-top: 18px; border-color: #40395e; background: linear-gradient(145deg, rgba(103,86,214,.06), transparent 42%), var(--panel); }
.custom-bank-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.custom-bank-header > div:first-child { display: grid; gap: 5px; }
.custom-bank-header h3 { margin: 0; font-size: 20px; }
.custom-bank-header p:not(.eyebrow) { max-width: 760px; margin: 0; color: #858290; font-size: 11px; line-height: 1.55; }
.custom-bank-counter { min-width: 126px; display: grid; gap: 5px; justify-items: end; }
.custom-bank-counter strong { font: 900 24px ui-monospace, SFMono-Regular, Consolas, monospace; color: #d3ceff; }
.custom-bank-counter span { padding: 4px 7px; border-radius: 5px; color: #d6b774; background: #2c2519; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.custom-bank-counter span.ready { color: #8ff0b6; background: #153022; }
.custom-bank-controls { display: grid; grid-template-columns: minmax(240px, .7fr) 1fr; gap: 12px; align-items: end; }
.custom-bank-controls label { display: grid; gap: 7px; color: #aaa8b3; font-size: 10px; }
.custom-bank-controls input { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; color: #f0eff4; background: #0e0e14; outline: none; }
.custom-bank-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.custom-bank-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.custom-bank-slot { position: relative; min-width: 0; min-height: 76px; display: grid; align-content: center; gap: 4px; padding: 9px 8px; border: 1px solid #2f2e39; border-radius: 8px; background: #101016; }
.custom-bank-slot.filled { cursor: grab; border-color: #3e385d; background: #12111b; }
.custom-bank-slot.empty { opacity: .5; border-style: dashed; }
.custom-bank-slot.dragging { opacity: .35; }
.custom-bank-slot.drop-target { border-color: var(--orange); background: #2a2014; }
.custom-bank-slot small { color: #a79dff; font: 800 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .07em; }
.custom-bank-slot strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.custom-bank-slot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #666571; font-size: 7px; }
.custom-bank-remove { position: absolute; top: 4px; right: 4px; width: 19px; height: 19px; padding: 0; border: 1px solid #49343a; border-radius: 5px; color: #c88c94; background: #201419; cursor: pointer; line-height: 1; }
.custom-bank-remove:hover { color: #fff; border-color: var(--red); background: #542029; }
@media (max-width: 1050px) {
  .patch-selection-toolbar { align-items: flex-start; flex-direction: column; }
  .custom-bank-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .custom-bank-controls { grid-template-columns: 1fr; }
  .custom-bank-actions { justify-content: flex-start; }
}
@media (max-width: 650px) {
  .custom-bank-header { flex-direction: column; }
  .custom-bank-counter { justify-items: start; }
  .custom-bank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .patch-selection-actions .button { flex: 1 1 120px; }
}

.patch-card .patch-check:hover { border-color: #8a82ff; color: #fff; background: #27243f; transform: scale(1.06); }
.patch-card .patch-check:focus-visible { outline: 2px solid #8a82ff; outline-offset: 2px; }
.patch-card:focus-visible { outline: 2px solid rgba(239,62,74,.65); outline-offset: 2px; }

/* V0.7.21 · language switch */
.language-switch { display: inline-flex; flex: none; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); }
.language-button { min-width: 31px; height: 26px; padding: 0 8px; border: 0; border-radius: 999px; color: #787683; background: transparent; cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.language-button:hover { color: #fff; }
.language-button.active { color: #fff; background: var(--red); box-shadow: 0 4px 14px rgba(239,62,74,.2); }
.bank-mini-meta .bank-download-count { color: var(--red); font-weight: 900; }
@media (max-width: 1080px) { .version-pill { display: none; } }
@media (max-width: 650px) { .topbar { gap: 12px; } .language-switch { margin-left: auto; } }


@media (max-width: 650px) {
  .jd08-converter { grid-template-columns: 1fr; padding: 22px; }
  .jd08-drop-zone { grid-row: auto; min-height: 170px; }
  .jd08-converter-actions { min-width: 0; }
  .jd08-bank-grid { grid-template-columns: 1fr; }
  .jd08-summary { grid-template-columns: 1fr 1fr; }
  .jd08-export-files, .jd08-export-actions { grid-template-columns: 1fr; }
}

/* V0.9.0 · MIDI quick setup + Day / JD-800 themes */
:root { --brand-red: #ef3e4a; }
.brand-mark { background: var(--brand-red); }

.theme-switch {
  display: inline-flex;
  flex: none;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}
.theme-button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .035em;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.theme-button:hover { color: #fff; transform: translateY(-1px); }
.theme-button.active { color: #fff; background: var(--red); box-shadow: 0 6px 20px color-mix(in srgb, var(--red) 24%, transparent); }

nav a { position: relative; transition: color .18s ease, transform .18s ease; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; border-radius: 99px; background: var(--red); transition: right .2s ease; }
nav a:hover { transform: translateY(-1px); }
nav a:hover::after { right: 0; }
.button { position: relative; overflow: hidden; }
.button:hover:not(:disabled) { transform: translateY(-2px) scale(1.012); box-shadow: 0 11px 26px rgba(0,0,0,.22); }
.button:active:not(:disabled) { transform: translateY(0) scale(.985); }
.bank-card, .jd990-converter, .jd08-converter, .random-bank-generator { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.bank-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--red) 48%, var(--line)); box-shadow: 0 18px 44px rgba(0,0,0,.22); }
.jd990-converter:hover, .jd08-converter:hover, .random-bank-generator:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(0,0,0,.22); }

.bank-actions-compact { display: grid; gap: 5px; min-width: 108px; }
.button.bank-send-midi-compact,
.button.bank-download-compact { width: 100%; min-height: 27px; padding: 0 8px; border-radius: 6px; font-size: 8px; box-shadow: none; white-space: nowrap; }
.button.bank-send-midi-compact { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); color: #fff; background: color-mix(in srgb, var(--red) 20%, #101016); }
.button.bank-send-midi-compact:hover:not(:disabled) { border-color: var(--red); background: color-mix(in srgb, var(--red) 32%, #101016); }

.modal-open { overflow: hidden; }
.midi-quick-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.midi-quick-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(9px); }
.midi-quick-card {
  position: relative;
  z-index: 1;
  width: min(610px, 100%);
  display: grid;
  gap: 17px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--red) 48%, var(--line));
  border-radius: 20px;
  background: radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--red) 17%, transparent), transparent 35%), var(--panel);
  box-shadow: 0 34px 110px rgba(0,0,0,.58), inset 0 1px rgba(255,255,255,.06);
}
.midi-quick-card h2 { margin: -8px 0 0; font-size: clamp(30px, 6vw, 46px); letter-spacing: -.045em; }
.midi-quick-card .eyebrow { margin: 0; }
.midi-quick-intro { margin: 0; color: var(--muted); line-height: 1.65; }
.midi-quick-icon { width: fit-content; padding: 5px 8px; border-radius: 5px; color: #fff; background: var(--brand-red); font: 900 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; box-shadow: 0 0 24px rgba(239,62,74,.24); }
.midi-quick-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 22px; transition: .18s ease; }
.midi-quick-close:hover { color: #fff; border-color: var(--red); transform: rotate(8deg); }
.midi-quick-connect { width: 100%; }
.midi-quick-status { margin: -5px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 11px; }
.midi-quick-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 12px; }
.midi-quick-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.midi-quick-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.midi-quick-card > small { color: var(--muted); line-height: 1.5; }

/* JD-800 Style: black, orange, white, with the original red JD badge */
html[data-theme="jd800"] {
  color: #fbfaf7;
  background: #11120f;
  --red: #f08a24;
  --red-soft: #ffab54;
  --purple: #a86a30;
  --orange: #f08a24;
  --green: #72d99e;
  --panel: #151411;
  --panel-2: #1d1b17;
  --line: #35312a;
  --muted: #aaa59c;
}
html[data-theme="jd800"] body {
  background:
    radial-gradient(circle at 78% 7%, rgba(240,138,36,.13), transparent 27rem),
    radial-gradient(circle at 8% 20%, rgba(255,255,255,.045), transparent 29rem),
    linear-gradient(rgba(17,18,15,.42), rgba(17,18,15,.66)),
    url("/assets/jd800-wireframe-orange.png") center 88px / min(1380px, 112vw) auto no-repeat fixed,
    #11120f;
}

@media (max-width: 760px) {
  html[data-theme="jd800"] body {
    background-position: center top, center top, center top, 58% 105px, center top;
    background-size: auto, auto, auto, 1050px auto, auto;
    background-attachment: scroll;
  }
}
html[data-theme="jd800"] .topbar { background: rgba(17,18,15,.88); border-bottom-color: rgba(240,138,36,.16); }
html[data-theme="jd800"] .button.primary { background: #e87d16; box-shadow: 0 10px 32px rgba(240,138,36,.18); }
html[data-theme="jd800"] .button.primary:hover:not(:disabled) { background: #ff962d; }
html[data-theme="jd800"] .hero-text { color: #c4bfb7; }
html[data-theme="jd800"] .synth-panel { border-color: #514536; background: linear-gradient(145deg, #27231d, #0e0d0b 62%); }
html[data-theme="jd800"] .random-bank-generator { border-color: #714115; background: radial-gradient(circle at top left, rgba(240,138,36,.14), transparent 32%), linear-gradient(145deg, rgba(255,255,255,.025), transparent), var(--panel); }
html[data-theme="jd800"] .drop-zone:hover,
html[data-theme="jd800"] .drop-zone.dragging,
html[data-theme="jd800"] .drop-zone:focus-visible { background: rgba(240,138,36,.045); box-shadow: inset 0 0 80px rgba(240,138,36,.04); }
html[data-theme="jd800"] .midi-routing-title { color: #ffad5a; }
html[data-theme="jd800"] .midi-main-grid-prominent { border-color: #6d471f; background: #21170e; }
html[data-theme="jd800"] .prominent-field select { border-color: #79522c; }
html[data-theme="jd800"] .channel-field select { border-color: #a66a31; background: #17110b; }
html[data-theme="jd800"] .admin-nav-link { color: #ffc987 !important; }
html[data-theme="jd800"] .bank-art.bank-art-compact {
  border-right-color: rgba(240,138,36,.34);
  background:
    radial-gradient(circle at 32% 18%, rgba(255,178,74,.38), transparent 48%),
    linear-gradient(155deg, #6a3510, #2b1a0c 62%, #100c08);
}
html[data-theme="jd800"] .bank-art.bank-art-compact span { color: #fff2d0; }
html[data-theme="jd800"] .bank-art.bank-art-compact small { color: #ffc861; }
html[data-theme="jd800"] .bank-state.published {
  color: #ffe06a;
  background: #3a2d0b;
  box-shadow: inset 0 0 0 1px rgba(255,224,106,.18);
}

/* Day Style: bright, clean and deliberately different from the hardware theme */
html[data-theme="day"] {
  color: #20242b;
  background: #f4f1e9;
  --red: #2968d7;
  --red-soft: #3c79df;
  --purple: #6254c7;
  --orange: #c87517;
  --green: #16804a;
  --panel: #fffdfa;
  --panel-2: #f6f4ee;
  --line: #d8d4ca;
  --muted: #6c7078;
}
html[data-theme="day"] body {
  background:
    radial-gradient(circle at 82% 5%, rgba(41,104,215,.10), transparent 26rem),
    radial-gradient(circle at 8% 14%, rgba(240,138,36,.11), transparent 30rem),
    #f4f1e9;
}
html[data-theme="day"] .topbar { background: rgba(255,253,250,.88); border-bottom-color: rgba(32,36,43,.10); box-shadow: 0 8px 30px rgba(55,49,39,.05); }
html[data-theme="day"] nav { color: #555b65; }
html[data-theme="day"] nav a:hover { color: #172033; }
html[data-theme="day"] .brand strong { color: #17191d; }
html[data-theme="day"] .brand small,
html[data-theme="day"] .version-pill { color: #6e727a; }
html[data-theme="day"] .theme-switch,
html[data-theme="day"] .language-switch { background: rgba(255,255,255,.68); }
html[data-theme="day"] .theme-button:hover,
html[data-theme="day"] .language-button:hover { color: #1d2430; }
html[data-theme="day"] .theme-button.active,
html[data-theme="day"] .language-button.active { color: #fff; }
html[data-theme="day"] .hero-text,
html[data-theme="day"] .section-heading > p,
html[data-theme="day"] .trust-row,
html[data-theme="day"] .bank-content > p,
html[data-theme="day"] .bank-description-compact,
html[data-theme="day"] .panel-note { color: #6b7079; }
html[data-theme="day"] .synth-panel { border-color: #c8c2b7; background: linear-gradient(145deg, #e4dfd5, #fbfaf6 62%); box-shadow: 0 30px 70px rgba(81,71,53,.15), inset 0 1px rgba(255,255,255,.8); }
html[data-theme="day"] .panel,
html[data-theme="day"] .bank-card,
html[data-theme="day"] .random-bank-generator,
html[data-theme="day"] .jd990-converter,
html[data-theme="day"] .jd08-converter { box-shadow: 0 12px 34px rgba(75,67,53,.07); }
html[data-theme="day"] .drop-zone { background: rgba(255,255,255,.46); border-color: #c8c4bb; }
html[data-theme="day"] .drop-zone:hover { background: rgba(41,104,215,.045); }
html[data-theme="day"] .button.ghost { color: #303642; background: rgba(255,255,255,.7); }
html[data-theme="day"] .button.subtle { color: #69707a; }
html[data-theme="day"] select,
html[data-theme="day"] input[type="text"],
html[data-theme="day"] input[type="email"],
html[data-theme="day"] input[type="password"],
html[data-theme="day"] textarea,
html[data-theme="day"] .organizer-search input,
html[data-theme="day"] .patch-editor-panel input[type="text"],
html[data-theme="day"] #patch-name-input,
html[data-theme="day"] .publish-grid input,
html[data-theme="day"] .publish-grid textarea,
html[data-theme="day"] .custom-bank-controls input,
html[data-theme="day"] .admin-login-row input { color: #222831; background: #fff; border-color: #cbc7bd; }
html[data-theme="day"] .prominent-field { color: #24272d !important; }
html[data-theme="day"] .midi-routing-title { color: #235fca; }
html[data-theme="day"] .midi-main-grid-prominent { border-color: #c9d7ef; background: #f1f6ff; }
html[data-theme="day"] .prominent-field select,
html[data-theme="day"] .channel-field select { color: #222831; background: #fff; border-color: #b7c8e4; }
html[data-theme="day"] .midi-selection-summary,
html[data-theme="day"] .transfer-status,
html[data-theme="day"] .sysex-info,
html[data-theme="day"] .custom-bank-slot,
html[data-theme="day"] .patch-selection-toolbar { color: #242932; background: #f7f6f2; border-color: #d5d1c8; }
html[data-theme="day"] .midi-selection-summary span { background: #fff; }
html[data-theme="day"] .midi-selection-summary strong { color: #272b32; }
html[data-theme="day"] .midi-log-panel pre { color: #17613a; }
html[data-theme="day"] .jd990-converter-heading p,
html[data-theme="day"] .jd08-converter-heading p { color: #626872; }
html[data-theme="day"] .jd990-converter-heading small,
html[data-theme="day"] .jd08-converter-heading small { color: #717985; }
html[data-theme="day"] .jd990-drop-zone { background: rgba(98,84,199,.04); color: #443b83; }
html[data-theme="day"] .jd08-drop-zone { background: rgba(35,142,150,.04); color: #285d62; }
html[data-theme="day"] .bank-art { background: radial-gradient(circle at 30% 20%, rgba(41,104,215,.48), transparent 42%), linear-gradient(145deg, #688bc7, #eee7db 62%, #f8f4ed); }
html[data-theme="day"] .bank-art small { color: #26354e; }
html[data-theme="day"] .bank-author { color: #454b55 !important; }
html[data-theme="day"] .midi-quick-backdrop { background: rgba(44,45,48,.45); }
html[data-theme="day"] .midi-quick-card { box-shadow: 0 34px 100px rgba(55,50,42,.25), inset 0 1px #fff; }
html[data-theme="day"] .midi-quick-close:hover { color: #20242b; }
html[data-theme="day"] .midi-quick-status { background: #f8f7f3; }
html[data-theme="day"] .button.bank-send-midi-compact { color: #1d4f9e; background: #eef4ff; }
html[data-theme="day"] .admin-nav-link { color: #9b5a15 !important; }

@media (max-width: 1120px) {
  .topbar { gap: 13px; }
  .theme-switch { order: 3; }
  nav { gap: 16px; }
}
@media (max-width: 860px) {
  .topbar { height: auto; min-height: 70px; padding-block: 10px; flex-wrap: wrap; }
  .brand { margin-right: 0; }
  nav { order: 4; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .theme-switch { margin-left: auto; }
  .language-switch { margin-left: 0; }
}
@media (max-width: 620px) {
  .theme-button { padding-inline: 8px; font-size: 8px; }
  .midi-quick-card { padding: 24px 18px 20px; }
  .midi-quick-grid { grid-template-columns: 1fr; }
  .midi-quick-actions .button { flex: 1; }
  .bank-actions-compact { min-width: 102px; }
}

/* V0.9.0 topbar alignment: themes stay beside the JD-800 badge */
.brand { margin-right: 0; }
nav { margin-left: auto; }
@media (max-width: 860px) { nav { margin-left: 0; } }

/* V0.9.1 · Night Style restores the original dark appearance from before theme options. */
html[data-theme="night"] {
  color: #f5f4f7;
  background: #09090d;
  --red: #ef3e4a;
  --red-soft: #ff6973;
  --purple: #6f56d9;
  --orange: #f0a348;
  --green: #65d497;
  --panel: #14141b;
  --panel-2: #1a1a23;
  --line: #2c2c38;
  --muted: #9695a3;
}
html[data-theme="night"] body {
  background:
    radial-gradient(circle at 76% 8%, rgba(111, 86, 217, .15), transparent 28rem),
    radial-gradient(circle at 10% 18%, rgba(239, 62, 74, .11), transparent 30rem),
    #09090d;
}
html[data-theme="night"] .topbar { background: rgba(9, 9, 13, .82); border-bottom-color: rgba(255,255,255,.07); }

/* V0.9.1 · JD-800 Style: every standard action button uses the orange hardware palette. */
html[data-theme="jd800"] .button,
html[data-theme="jd800"] .converter-primary,
html[data-theme="jd800"] .jd08-primary,
html[data-theme="jd800"] .community-button {
  color: #160d04 !important;
  border-color: #f08a24 !important;
  background: linear-gradient(180deg, #ffa13f, #e77912) !important;
  box-shadow: 0 9px 26px rgba(240,138,36,.18) !important;
}
html[data-theme="jd800"] .button:hover:not(:disabled),
html[data-theme="jd800"] .converter-primary:hover:not(:disabled),
html[data-theme="jd800"] .jd08-primary:hover:not(:disabled),
html[data-theme="jd800"] .community-button:hover:not(:disabled) {
  color: #0b0804 !important;
  border-color: #ffb25f !important;
  background: linear-gradient(180deg, #ffb45f, #f08a24) !important;
  box-shadow: 0 12px 34px rgba(240,138,36,.28) !important;
}
html[data-theme="jd800"] .button:disabled { opacity: .42; }


/* V0.9.2 local · floating support button */
.coffee-float {
  position: fixed;
  left: 18px;
  bottom: 24px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 13px 8px 10px;
  border: 1px solid rgba(255,174,69,.58);
  border-radius: 999px;
  color: #fff3df;
  background: rgba(25,18,12,.94);
  box-shadow: 0 12px 32px rgba(0,0,0,.32), 0 0 0 1px rgba(255,174,69,.08) inset;
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .02em;
  backdrop-filter: blur(10px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.coffee-float:hover {
  transform: translateY(-2px);
  border-color: #ffb65c;
  box-shadow: 0 16px 38px rgba(0,0,0,.4), 0 0 24px rgba(240,138,36,.14);
}
.coffee-float:focus-visible { outline: 2px solid #ffb65c; outline-offset: 3px; }
.coffee-float-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  color: #1b1107;
  background: linear-gradient(180deg, #ffc66e, #f08a24);
}
.coffee-float-icon svg { width: 20px; height: 20px; }
.coffee-float-label { white-space: nowrap; }
html[data-theme="day"] .coffee-float { color: #36200b; background: rgba(255,251,244,.96); border-color: #d9953d; box-shadow: 0 12px 30px rgba(76,54,27,.18); }
@media (max-width: 900px) {
  .coffee-float { left: 12px; bottom: 14px; min-height: 42px; padding: 6px 10px 6px 7px; font-size: 10px; }
  .coffee-float-icon { width: 28px; height: 28px; flex-basis: 28px; }
}
@media (max-width: 620px) {
  .coffee-float { width: 48px; height: 48px; min-height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
  .coffee-float-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .coffee-float-icon svg { width: 22px; height: 22px; }
  .coffee-float-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
}
