:root{--bg:#f5f6f8;--surface:#fff;--surface2:#f0f2f5;--text:#1d2430;--muted:#6d7685;--line:#dde2e8;--accent:#4d63d2;--accent2:#eef0ff;--danger:#b74242;--dark:#202537;--shadow:0 10px 30px rgba(30,38,60,.06)}*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);background:var(--bg)}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh;display:grid;grid-template-columns:240px 1fr}.sidebar{background:var(--dark);color:white;padding:22px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;font-size:20px;padding:0 8px 24px}.brand span{width:34px;height:34px;border-radius:10px;background:#fff;color:var(--dark);display:grid;place-items:center}.sidebar nav{display:grid;gap:6px}.sidebar nav a{padding:11px 12px;border-radius:10px;color:#dce1ec}.sidebar nav a:hover,.sidebar nav a.active{background:#343b52;color:#fff}.side-foot{margin-top:auto;padding:18px 10px 4px;border-top:1px solid #3a4054;display:grid;gap:4px}.muted-light{color:#a6adbd;font-size:12px}.link-btn{border:0;background:transparent;color:#cdd3e1;padding:5px 0;text-align:left}.topbar{height:70px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.94);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px;position:sticky;top:0;z-index:4}.global-search{width:min(620px,75%)}input,select,textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text)}.global-search input{background:#f8f9fb}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#dde3ff;color:#3b4da8;font-weight:800}.avatar.small{width:42px;height:42px;flex:none}.content{max-width:1400px;margin:0 auto;padding:28px}.public-main{min-height:100vh;display:grid;place-items:center}.public-content{width:100%;max-width:520px}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow)}.pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:24px}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.11em;font-weight:800;color:var(--muted)}h1{font-size:30px;line-height:1.1;margin:6px 0 8px}h2{font-size:20px;margin:24px 0 14px}.muted{color:var(--muted)}.grid{display:grid;gap:16px}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.four{grid-template-columns:repeat(4,minmax(0,1fr))}.stats{margin-bottom:22px}.stat span{color:var(--muted);font-size:13px}.stat b{display:block;font-size:30px;margin-top:6px}.category-card{display:flex;gap:14px;align-items:center;min-height:112px}.category-card:hover,.object-card:hover{border-color:#b6c0ef;transform:translateY(-1px)}.category-card b{display:block}.category-card small{display:block;color:var(--muted);margin-top:4px}.bigicon{font-size:36px}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;padding:10px 14px;border-radius:10px;font-weight:750;cursor:pointer}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.danger{color:var(--danger);border-color:#efcaca}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.table-wrap{overflow:auto;padding:4px 18px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px 8px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}tr:last-child td{border-bottom:0}.filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;margin-bottom:18px}.object-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.object-card{padding:0;overflow:hidden;transition:.15s}.thumb{aspect-ratio:4/3;background:linear-gradient(135deg,#eef0f5,#dde3ee);display:grid;place-items:center;font-size:48px;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.object-body{padding:14px;display:grid;gap:5px}.object-body small{color:var(--muted);min-height:17px}.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.chips span,.chip{font-size:12px;background:var(--surface2);padding:5px 8px;border-radius:999px;color:#586273}.form-card label,.stack label{display:grid;gap:6px;font-weight:650;font-size:14px}.full{grid-column:1/-1}.form-card .actions{margin-top:20px;justify-content:flex-end}.detail-grid{display:grid;grid-template-columns:minmax(280px,380px) 1fr;gap:24px}.hero-photo,.hero-placeholder{width:100%;aspect-ratio:1/1;border-radius:18px}.hero-photo{object-fit:cover;background:#eee}.hero-placeholder{display:grid;place-items:center;background:linear-gradient(135deg,#f0f2f6,#dce2ed);font-size:90px}.meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:18px 0}.meta-grid div{padding:10px}.meta-grid small{display:block;color:var(--muted);margin-bottom:4px}.detail-grid .card{margin-top:16px}.detail-grid .card h2{margin-top:0}.auth-card{padding:28px}.auth-mark{width:52px;height:52px;border-radius:15px;background:var(--dark);color:#fff;display:grid;place-items:center;font-size:24px;margin-bottom:18px}.stack{display:grid;gap:15px;margin-top:20px}.check{grid-template-columns:auto 1fr!important;align-items:center!important;font-weight:500!important}.check input{width:auto}.code-input{font-size:25px;letter-spacing:.35em;text-align:center}.notice{background:var(--accent2);border-left:4px solid var(--accent);padding:13px 15px;border-radius:8px;margin:14px 0 18px;overflow-wrap:anywhere}.flash{padding:12px 14px;border-radius:10px;margin-bottom:14px}.flash.success{background:#e8f5ed;color:#1e6a49}.flash.error{background:#fcecec;color:#993838}.member-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.member-row:last-child{border-bottom:0}.member-row div{min-width:0;flex:1}.member-row b,.member-row small{display:block}.member-row small{color:var(--muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis}.empty{text-align:center;padding:40px}.empty h1{margin-top:0}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f8fa;padding:12px;border-radius:10px}code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em}@media(max-width:1050px){.four,.object-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid{grid-template-columns:300px 1fr}.filters{grid-template-columns:1fr 1fr}}@media(max-width:760px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto;padding:12px}.brand{padding:3px 4px 10px}.sidebar nav{grid-template-columns:repeat(3,1fr);overflow:auto}.sidebar nav a{font-size:12px;padding:9px 8px;white-space:nowrap;text-align:center}.side-foot{display:none}.topbar{height:60px;padding:0 14px;position:relative}.global-search{width:calc(100% - 52px)}.content{padding:18px 13px}.pagehead{display:block}.pagehead>.btn,.pagehead>.actions{margin-top:12px}.four,.two,.object-grid,.detail-grid,.filters{grid-template-columns:1fr}.meta-grid{grid-template-columns:1fr}.hero-photo,.hero-placeholder{max-width:440px}.public-content{padding:14px}.auth-card{padding:22px}}
/* v0.2.0 */
:root{--green:#176b4b;--green-dark:#13241c;--green-soft:#e7f3ed}
button,.btn,.link-btn,.mini-btn,a,select,input[type=checkbox]{cursor:pointer}.link-btn:hover{text-decoration:underline;color:#fff}
.nav-label{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#879b92;margin:17px 12px 2px}.btn.soft{background:var(--green-soft);border-color:transparent;color:var(--green)}.btn.primary{background:var(--green);border-color:var(--green)}
.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.quick{display:grid;gap:4px;min-height:125px;align-content:start;transition:.15s}.quick:hover{transform:translateY(-2px);border-color:#a9cdbb}.quick>span{font-size:31px;margin-bottom:8px}.quick small{color:var(--muted)}
.object-grid.compact{grid-template-columns:repeat(6,minmax(0,1fr))}.object-grid.compact .thumb{aspect-ratio:1/1}.filters{grid-template-columns:2fr repeat(4,1fr) auto;align-items:end}.filters.card{padding:14px}.catalog-search{display:grid;grid-template-columns:1fr 2fr auto;gap:12px;align-items:end}.catalog-search label{display:grid;gap:6px;font-size:13px;font-weight:700}
.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.catalog-result{display:grid;grid-template-columns:92px 1fr;gap:13px;align-items:center;padding:12px}.catalog-result img,.catalog-placeholder{width:92px;height:115px;border-radius:10px;object-fit:cover;background:#eef2ef}.catalog-placeholder{display:grid;place-items:center;font-size:35px}.catalog-result small{display:block;color:var(--muted);margin:5px 0 8px}
.catalog-picked{border-left-color:var(--green);background:var(--green-soft)}.type-fields{border-top:1px solid var(--line);margin-top:22px;padding-top:2px}.type-fields[hidden]{display:none!important}.photo-input small,.form-card label small{font-weight:400;color:var(--muted)}.form-actions{margin-top:24px}.form-card select[multiple]{min-height:130px;cursor:default}
.scanner{height:360px;border:2px dashed #b8c8bf;border-radius:16px;background:#0d1511;position:relative;overflow:hidden;margin:14px 0}.scanner video{width:100%;height:100%;object-fit:cover}.scanner-overlay{position:absolute;inset:25%;border:2px solid rgba(255,255,255,.8);color:#fff;display:grid;place-items:center;font-size:60px;border-radius:12px;pointer-events:none}.stack hr{border:0;border-top:1px solid var(--line);width:100%;margin:8px 0}
.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.photo-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.photo-card img{width:100%;aspect-ratio:1;object-fit:cover;display:block}.photo-actions{display:flex;justify-content:space-between;align-items:center;padding:6px}.mini-btn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px 8px}.danger-text{color:var(--danger)}.data-list{margin:0}.data-list div{display:grid;grid-template-columns:160px 1fr;padding:8px 0;border-bottom:1px solid var(--line)}.data-list div:last-child{border-bottom:0}.data-list dt{color:var(--muted)}.data-list dd{margin:0;font-weight:650}.relation-row{display:block;padding:10px 0;border-bottom:1px solid var(--line)}
.tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow:auto}.tabs a{padding:11px 14px;border-bottom:3px solid transparent;white-space:nowrap}.tabs a.active{border-bottom-color:var(--green);font-weight:800;color:var(--green)}.setting-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line)}.setting-row div{display:grid;gap:3px}.setting-row small{color:var(--muted)}
.provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.provider-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.provider-head h2{margin:0 0 8px}.provider-card .test-form{margin-top:9px}.status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;background:#edf0f2}.status.ok{background:#e6f5ec;color:#216c49}.status.error{background:#fbeaea;color:#9b3d3d}.status.never{background:#f0f2f4;color:#65706a}
.mobile-nav{display:none}
@media(max-width:1200px){.object-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){
 .sidebar{display:none}.app-shell{display:block}.topbar{position:sticky;top:0;height:58px}.content{padding:16px 12px calc(88px + env(safe-area-inset-bottom))}.pagehead{margin-bottom:18px}.pagehead h1{font-size:25px}.pagehead .actions{display:flex}.stats.four{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick{min-height:112px}.object-grid,.object-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.object-card .thumb{aspect-ratio:1/1}.object-body{padding:11px}.object-body b{font-size:14px}.filters,.catalog-search{grid-template-columns:1fr}.catalog-grid{grid-template-columns:1fr}.catalog-result{grid-template-columns:80px 1fr}.catalog-result img,.catalog-placeholder{width:80px;height:100px}.provider-grid{grid-template-columns:1fr}.scanner{height:55vh;min-height:320px}.photo-grid{grid-template-columns:repeat(3,1fr)}.data-list div{grid-template-columns:1fr;gap:3px}.mobile-nav{display:grid;position:fixed;z-index:20;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);grid-template-columns:repeat(5,1fr);min-height:68px;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -8px 24px rgba(10,30,20,.06)}.mobile-nav a{display:grid;place-items:center;align-content:center;gap:1px;font-size:20px;color:#64736c}.mobile-nav small{font-size:10px}.mobile-nav .mobile-plus{width:48px;height:48px;place-self:center;border-radius:50%;background:var(--green);color:#fff;font-size:31px;box-shadow:0 6px 16px rgba(23,107,75,.25)}
}
/* v0.3.0 scan intelligent */
.scan-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.scan-type-card{display:flex;flex-direction:column;gap:10px}.scan-type-card h2{margin:0}.scan-type-card p{color:var(--muted);flex:1}.scan-icon{font-size:42px}.scan-panel{margin-top:20px}.scan-panel[hidden]{display:none}.scan-panel-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.scan-panel-head h2{margin:4px 0}.manual-code{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-top:18px}.manual-code label{display:grid;gap:6px;font-weight:700;font-size:13px}.photo-capture input{padding:18px;background:#f8faf9;border-style:dashed}.scan-review-grid{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:18px}.scan-preview{width:100%;max-height:68vh;object-fit:contain;border-radius:12px;background:#eef2ef}.ocr-details{margin-top:18px}.ocr-details summary{cursor:pointer;font-weight:700}.ocr-details pre{max-height:280px;overflow:auto}.scan-type-card .btn{width:100%}
@media(max-width:900px){.scan-type-grid{grid-template-columns:1fr}.scan-review-grid{grid-template-columns:1fr}.manual-code{grid-template-columns:1fr}.scan-type-card{min-height:auto}}
/* v0.4.0 — interface inventaire */
:root{--bg:#f5f7f4;--surface:#fff;--surface2:#f0f4f1;--text:#17231d;--muted:#708078;--line:#dbe3dd;--accent:#176b4b;--accent2:#e7f3ed;--dark:#13241c;--shadow:0 12px 30px rgba(23,35,29,.055)}
body{background:var(--bg)}.app-shell{grid-template-columns:222px 1fr}.sidebar{background:#fff;color:var(--text);border-right:1px solid var(--line);padding:20px 14px}.brand{font-size:21px;color:#14231c}.brand span{background:var(--green);color:#fff;transform:rotate(45deg);border-radius:7px}.brand span::first-letter{transform:rotate(-45deg)}.sidebar nav a{color:#405047}.sidebar nav a:hover,.sidebar nav a.active{background:#dff0e7;color:#143f2d}.nav-label{color:#90a097}.side-foot{border-top:1px solid var(--line);color:var(--text)}.side-foot .muted-light{color:var(--muted)}.side-foot .link-btn{color:#65746c}.side-foot .link-btn:hover{color:var(--green)}
.topbar{height:64px;padding:0 30px;background:rgba(255,255,255,.93)}.global-search{max-width:560px}.global-search input{background:#f8faf8;border-color:#e1e7e3}.avatar{background:#e4efe9;color:#176b4b}.content{max-width:1600px;padding:26px 28px 40px}.pagehead h1{font-size:34px}.eyebrow{color:var(--green)}.btn{border-radius:10px}.btn.primary{box-shadow:0 6px 14px rgba(23,107,75,.14)}
.collection-toolbar{padding:16px 18px;margin-bottom:14px}.filter-row{display:grid;grid-template-columns:minmax(260px,2fr) repeat(4,minmax(150px,1fr)) auto;gap:10px;align-items:end}.filter-row label{display:grid;gap:5px}.filter-row label small{color:var(--muted);font-weight:700}.search-field{position:relative}.search-field span{position:absolute;left:13px;top:11px;color:var(--muted);font-size:20px}.search-field input{padding-left:40px}.filter-submit{height:43px}.view-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid var(--line);margin-top:15px;padding-top:14px}.view-switch{display:inline-flex;background:#f7f9f7;border:1px solid var(--line);border-radius:10px;padding:3px}.view-choice{display:inline-flex;gap:8px;align-items:center;padding:8px 15px;border-radius:8px;color:#526159;font-weight:750}.view-choice.active{background:var(--green);color:#fff;box-shadow:0 3px 9px rgba(23,107,75,.14)}.sort-control{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:13px}.sort-control select{width:auto;min-width:150px;padding:8px 32px 8px 10px}.sort-dir{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:9px;font-weight:900;color:var(--green)}
.collection-tip{display:flex;gap:10px;align-items:center;background:#e9f5ef;border:1px solid #d7ebe1;color:#315f4b;border-radius:11px;padding:10px 14px;margin:14px 0}.collection-list,.collection-grid{display:none}.collection-list.is-active,.collection-grid.is-active{display:block}.inventory-card{padding:0;overflow:hidden}.inventory-scroll{overflow:auto}.inventory-table{min-width:1050px}.inventory-table th{background:#f3f6f4;text-transform:none;letter-spacing:0;font-size:12px;color:#56665e;position:sticky;top:0;z-index:1}.inventory-table th a{color:inherit}.inventory-table td{padding:9px 10px;vertical-align:middle;font-size:13px}.inventory-table tbody tr:hover{background:#f8fbf9}.inventory-table .thumb-col{width:58px}.inventory-table .actions-col{width:90px}.list-thumb{display:grid;place-items:center;width:42px;height:54px;border-radius:7px;overflow:hidden;background:#edf1ee;font-size:20px}.list-thumb img{width:100%;height:100%;object-fit:cover}.name-cell b{display:block;max-width:230px}.name-cell small{display:block;color:var(--muted);margin-top:2px}.details-cell{color:#58675f;max-width:330px}.location-cell{max-width:250px}.pin{color:#5a7969;margin-right:4px}.owner-dot{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e6eeea;color:#365c49;font-size:10px;font-weight:850;margin-right:5px}.type-pill,.condition-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:750;white-space:nowrap}.type-pill{background:#e8efff;color:#355b9f}.type-books{background:#eee8ff;color:#624ca0}.type-video-games{background:#e2efff;color:#2865a1}.type-consoles{background:#ffe7ef;color:#9b3e61}.type-pokemon-cards{background:#fff0c7;color:#8b6a11}.type-board-games{background:#ffead8;color:#9a541c}.condition-pill{background:#dff3e8;color:#1b714b}.row-actions{white-space:nowrap}.row-actions a{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:8px;color:#476457}.row-actions a:hover{background:#e6f1eb;color:#155c40}
.collection-mosaic{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.collection-mosaic .object-card{border-radius:13px}.collection-mosaic .thumb{aspect-ratio:1/1.05}.collection-mosaic .object-body{padding:11px}.mosaic-top{display:grid;gap:6px}.mosaic-top .type-pill{justify-self:start}.mosaic-meta{display:grid;gap:4px;margin-top:6px;color:#697970;font-size:11px}.collection-footer{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:15px 4px;color:var(--muted);font-size:12px}.pager{display:flex;gap:5px}.pager-btn{display:grid;place-items:center;min-width:34px;height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;font-weight:800}.pager-btn.active{background:var(--green);border-color:var(--green);color:#fff}.per-page{display:flex;align-items:center;gap:7px}.per-page select{width:auto;padding:6px 27px 6px 8px}.collection-head .add-btn{min-width:112px}
@media(max-width:1250px){.filter-row{grid-template-columns:2fr repeat(2,1fr)}.filter-submit{align-self:end}.collection-mosaic{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.content{padding:16px 10px calc(88px + env(safe-area-inset-bottom))}.pagehead h1{font-size:28px}.collection-toolbar{padding:12px}.filter-row{grid-template-columns:1fr}.view-row{align-items:stretch;flex-direction:column}.view-switch{width:100%}.view-choice{flex:1;justify-content:center}.sort-control{justify-content:space-between}.sort-control select{flex:1}.collection-tip{font-size:12px}.collection-mosaic{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.inventory-card{background:transparent;border:0;box-shadow:none}.inventory-scroll{overflow:visible}.inventory-table{min-width:0;display:block}.inventory-table thead{display:none}.inventory-table tbody{display:grid;gap:9px}.inventory-table tr{display:grid;grid-template-columns:58px 1fr auto;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;box-shadow:0 3px 10px rgba(23,35,29,.035)}.inventory-table td{border:0!important;padding:3px 5px!important}.inventory-table td:nth-child(1){grid-column:1;grid-row:1/5}.inventory-table td:nth-child(2){grid-column:2;grid-row:1}.inventory-table td:nth-child(3){grid-column:3;grid-row:1}.inventory-table td:nth-child(4){grid-column:2/4;grid-row:2}.inventory-table td:nth-child(5){grid-column:2/4;grid-row:3}.inventory-table td:nth-child(6){grid-column:2/4;grid-row:4}.inventory-table td:nth-child(7){grid-column:2;grid-row:5}.inventory-table td:nth-child(8){grid-column:3;grid-row:5;justify-self:end}.details-cell,.location-cell{max-width:none}.list-thumb{width:50px;height:66px}.collection-footer{flex-wrap:wrap}.collection-footer>div:first-child{width:100%}.per-page{margin-left:auto}.app-shell{display:block}.sidebar{display:none}}
.side-tagline{display:grid;gap:5px;margin-bottom:16px;padding:12px;background:#f6f9f7;border:1px solid var(--line);border-radius:12px;color:#315445}.side-tagline small{color:var(--muted);font-weight:400;line-height:1.35}

/* v0.4.1 — hub d'ajout intelligent */
.add-method-note{margin-bottom:18px;background:#eef8f2;border-color:#cfe4d8;color:#315e49}
.add-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.add-type-card{display:flex;flex-direction:column;gap:14px;min-height:220px}
.add-type-head{display:flex;align-items:flex-start;gap:13px}
.add-type-head h2{margin:2px 0 4px}.add-type-head p{margin:0}
.inline-catalog-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.inline-catalog-search input{min-width:0}
.add-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
@media(max-width:760px){.add-type-grid{grid-template-columns:1fr}.inline-catalog-search{grid-template-columns:1fr}.inline-catalog-search .btn{width:100%}.add-type-card{min-height:0}}

/* v0.4.2 — plateformes, achat/valeur et liens rapides */
.purchase-grid{align-items:end}.purchase-grid .two-cols{grid-column:span 2}.notice.compact{margin-top:12px;padding:10px 13px;font-size:13px}
.relation-builder{margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}.relation-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.relation-head h2{margin:0 0 5px}.relation-head p{margin:0}.relation-count{background:var(--accent2);color:var(--green);padding:8px 11px;border-radius:999px;white-space:nowrap;font-size:12px}.relation-tools{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:8px;margin:15px 0 10px}.relation-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:430px;overflow:auto;padding:2px}.relation-candidate{display:grid!important;grid-template-columns:auto 38px 1fr auto;align-items:center;gap:9px;border:1px solid var(--line);border-radius:11px;padding:10px;background:#fff;cursor:pointer;font-weight:400!important;transition:.12s}.relation-candidate:hover{border-color:#9bc8b0;background:#f8fcfa}.relation-candidate:has(input:checked){background:#eaf6ef;border-color:#8dc2a5}.relation-candidate input{width:auto}.relation-icon{font-size:22px}.relation-main{display:grid;min-width:0}.relation-main b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.relation-main small{color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.relation-add{font-size:22px;color:var(--green)}.relation-candidate:has(input:checked) .relation-add{font-size:0}.relation-candidate:has(input:checked) .relation-add:after{content:'✓';font-size:19px;font-weight:900}.relation-empty{padding:20px;text-align:center;color:var(--muted);background:#f7f9f7;border-radius:11px}.value-grid{margin:0;box-shadow:none;border:0;padding:0}
@media(max-width:900px){.relation-candidates{grid-template-columns:1fr}.relation-tools{grid-template-columns:1fr}.purchase-grid{grid-template-columns:1fr 1fr}.purchase-grid .two-cols{grid-column:1/-1}}
@media(max-width:600px){.purchase-grid{grid-template-columns:1fr}.purchase-grid .two-cols{grid-column:auto}.relation-head{display:block}.relation-count{display:inline-block;margin-top:9px}.relation-candidates{max-height:none}}


/* v0.4.3 — navigation simplifiée + sélecteur de relations scalable */
.mobile-nav.mobile-nav-four{grid-template-columns:repeat(4,1fr)}
.mobile-nav.mobile-nav-four .mobile-plus{display:grid;gap:0;font-size:27px}
.mobile-nav.mobile-nav-four .mobile-plus small{color:#fff;font-size:9px;font-weight:750}
.relation-builder{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}
.relation-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.relation-head h2{margin:0 0 5px}.relation-head p{margin:0}.relation-count{background:#e7f4ed;color:var(--green);border:1px solid #d4e9dd;padding:8px 11px;border-radius:999px;font-size:12px;white-space:nowrap}
.relation-context{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0}.relation-context-pill,.relation-filter{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 10px;background:#e7f4ed;color:#1f6549;font-size:12px;font-weight:750}.relation-context-pill.neutral{background:#f4f6f4;color:#617068;border:1px solid var(--line)}.relation-arrow{color:var(--muted)}
.relation-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}.relation-browser,.relation-summary{border:1px solid var(--line);border-radius:15px;background:#fff}.relation-browser{padding:14px}.relation-summary{padding:15px;position:sticky;top:82px}
.relation-tools{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:8px;margin:0 0 10px}.relation-filterline{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 10px}.relation-filter{background:#f3f7f4;color:#567064;padding:6px 9px}.relation-filter.active{background:#e8f5ee;color:#24664b}
.relation-list-head{display:grid;grid-template-columns:32px minmax(240px,1.4fr) minmax(130px,.7fr) minmax(180px,1fr) minmax(90px,.5fr);gap:8px;padding:8px 10px;background:#f4f7f5;border:1px solid var(--line);border-radius:10px 10px 0 0;color:#65746c;font-size:11px;font-weight:800}
.relation-candidates{display:block;max-height:none;overflow:visible;padding:0;border-left:1px solid var(--line);border-right:1px solid var(--line)}
.relation-candidate{display:grid!important;grid-template-columns:32px minmax(240px,1.4fr) minmax(130px,.7fr) minmax(180px,1fr) minmax(90px,.5fr);gap:8px;align-items:center;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:8px 10px;background:#fff;cursor:pointer;font-weight:400!important;transition:.12s}
.relation-candidate[hidden]{display:none!important}.relation-candidate:hover{background:#f8fbf9}.relation-candidate:has(input:checked){background:#eaf6ef}.relation-candidate input{width:18px;height:18px;margin:0;accent-color:var(--green)}
.relation-object{display:flex;align-items:center;gap:9px;min-width:0}.relation-thumb{width:38px;height:48px;border-radius:6px;background:#edf2ef;display:grid;place-items:center;overflow:hidden;flex:none;font-size:20px}.relation-thumb img{width:100%;height:100%;object-fit:cover}.relation-main{display:grid;min-width:0}.relation-main b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.relation-main small{color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.relation-owner,.relation-location,.relation-condition{font-size:12px;color:#5d6c64;overflow:hidden;text-overflow:ellipsis}.relation-location{white-space:normal;line-height:1.3}.relation-condition{color:#23734f;font-weight:700}
.relation-empty{padding:24px;text-align:center;color:var(--muted);background:#f8faf8;border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px}.relation-pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:10px}.relation-pager span{color:var(--muted);font-size:12px}.relation-pager .btn{padding:7px 10px}.relation-pager .btn:disabled{opacity:.4;cursor:not-allowed}
.relation-summary-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding-bottom:10px;border-bottom:1px solid var(--line)}.relation-summary-head small,.relation-summary-head b{display:block}.relation-summary-head small{color:var(--muted);font-size:11px}.relation-clear-link{color:var(--green);font-size:12px;width:auto;cursor:pointer}.relation-selected-list{display:grid;gap:0;margin-top:8px}.relation-selected{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}.relation-selected .relation-object{flex:1}.relation-selected .relation-thumb{width:34px;height:42px}.relation-remove{width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#65746c;cursor:pointer;font-size:20px}.relation-remove:hover{border-color:#e2b9b9;color:var(--danger)}.relation-summary-empty{color:var(--muted);font-size:13px;padding:18px 2px}.relation-summary-note{margin-top:12px;padding:11px;background:#eaf6ef;border-radius:10px;color:#416c58;font-size:12px;line-height:1.4}
.linked-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.linked-card-head h2{margin:0}.linked-card-head p{margin:4px 0 0}.linked-list{display:grid;margin-top:10px}.relation-row{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;padding:10px;border:1px solid var(--line);border-radius:10px;margin-top:7px}.relation-row:hover{background:#f8fbf9;border-color:#b7d3c3}.relation-row-icon{width:30px;height:30px;border-radius:8px;background:#e8f5ee;color:var(--green);display:grid;place-items:center}.relation-row b,.relation-row small{display:block}.relation-row small{color:var(--muted);font-size:11px;margin-top:2px}.relation-row-arrow{color:var(--green);font-weight:900}
@media(max-width:1100px){.relation-layout{grid-template-columns:1fr}.relation-summary{position:static}.relation-list-head,.relation-candidate{grid-template-columns:32px minmax(220px,1.3fr) minmax(120px,.7fr) minmax(150px,1fr)}.relation-list-head span:last-child,.relation-candidate .relation-condition{display:none}}
@media(max-width:760px){.relation-head{display:block}.relation-count{display:inline-block;margin-top:9px}.relation-tools{grid-template-columns:1fr}.relation-list-head{display:none}.relation-candidates{border:0}.relation-candidate{grid-template-columns:28px 1fr;border:1px solid var(--line);border-radius:11px;margin-bottom:7px;padding:9px}.relation-candidate .relation-object{grid-column:2}.relation-owner,.relation-location,.relation-condition{grid-column:2}.relation-owner:before{content:'Propriétaire : ';color:var(--muted)}.relation-location:before{content:'Emplacement : ';color:var(--muted)}.relation-condition:before{content:'État : ';color:var(--muted)}.relation-summary{padding:12px}.linked-card-head{display:block}.linked-card-head .btn{margin-top:10px}}

/* v0.4.4 — ajout en série */
.serial-add-success{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;margin-bottom:18px;border-color:#bfe3cf;background:linear-gradient(135deg,#effaf4,#fff)}
.serial-add-success-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#18865d;color:#fff;font-weight:900;font-size:20px}
.serial-add-success-copy{display:grid;gap:3px}.serial-add-success-copy b{font-size:15px}
@media(max-width:720px){.serial-add-success{grid-template-columns:auto 1fr}.serial-add-success .btn{grid-column:1/-1;width:100%;text-align:center}.serial-add-success-icon{align-self:start}}


/* v0.4.5 — confort d'ajout + défauts famille */
.form-card{padding-bottom:0;overflow:visible}
.form-actions{position:sticky;bottom:0;z-index:20;margin:24px -18px 0;padding:14px 18px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line);box-shadow:0 -8px 22px rgba(23,54,40,.08);justify-content:flex-end}
.relation-candidates{max-height:430px;overflow-y:auto;overscroll-behavior:contain}
.relation-selected-list{max-height:330px;overflow-y:auto;overscroll-behavior:contain;padding-right:3px}
.default-badge{display:inline-flex;margin-left:6px;padding:3px 7px;border-radius:999px;background:#e8f5ee;color:#176b4b;font-size:10px;vertical-align:middle}
.default-check{padding:9px 10px;border-radius:10px;background:#eef8f2;border:1px solid #d7eadf}
@media(max-width:760px){.form-actions{margin-left:-14px;margin-right:-14px;padding:11px 14px;gap:8px}.form-actions .btn{flex:1}.relation-candidates{max-height:380px}.relation-selected-list{max-height:240px}}

/* v0.4.6 — relations strictes et modes de liaison */
.relation-mode-switch{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 12px}.relation-mode-btn{border:1px solid var(--line);background:#fff;color:#56685f;border-radius:999px;padding:7px 11px;font-weight:750;cursor:pointer}.relation-mode-btn.active{background:#e7f4ed;border-color:#cfe6d9;color:#176b4b}.relation-auto-note{margin:8px 0 0;padding:9px 11px;border-radius:10px;background:#eef8f2;color:#35654f;font-size:12px}.relation-auto-note[hidden]{display:none!important}

/* v0.5.0 — navigation, filtres avancés, prêts, souhaits, catégories */
:root{--green:#176b4b;--green-dark:#173c2e;--green-deep:#123326;--green-soft:#e9f5ee;--bg:#f6f8f6;--text:#18271f;--muted:#718078;--line:#dce5df;--surface:#fff;--shadow:0 10px 30px rgba(25,55,42,.06)}
body{background:var(--bg)}.app-shell{grid-template-columns:250px minmax(0,1fr)}.sidebar{background:linear-gradient(180deg,var(--green-dark),var(--green-deep));padding:22px 14px}.brand{padding:0 8px 24px;align-items:flex-start}.brand span{background:#eaf6ef;color:var(--green);font-size:16px}.brand div{display:grid}.brand b{font-size:21px}.brand small{font-size:11px;color:#aac1b6;font-weight:500;margin-top:2px}.sidebar nav a{color:#dce9e3}.sidebar nav a:hover,.sidebar nav a.active{background:rgba(255,255,255,.13);color:#fff}.nav-label{color:#87a99a}.side-foot{border-top:0;padding:16px 8px}.side-tagline{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.11);border-radius:13px;padding:14px;display:grid;gap:5px;color:#e9f2ed}.side-tagline small{color:#acc1b7;line-height:1.4}.topbar{height:72px;padding:0 26px}.global-search{position:relative}.global-search span{position:absolute;left:14px;top:9px;color:var(--muted);font-size:20px}.global-search input{padding-left:42px;background:#fafcfb}.user-menu{position:relative}.user-menu summary{list-style:none;display:flex;align-items:center;gap:9px;cursor:pointer;padding:5px 7px;border-radius:11px}.user-menu summary::-webkit-details-marker{display:none}.user-menu summary:hover{background:#f1f6f3}.user-menu-copy{display:grid;min-width:120px}.user-menu-copy b{font-size:13px}.user-menu-copy small{font-size:10px;color:var(--muted)}.avatar{background:#dcefe5;color:var(--green);width:40px;height:40px}.user-popover{position:absolute;right:0;top:54px;width:260px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;box-shadow:0 18px 45px rgba(20,45,33,.14);z-index:30;display:grid;gap:3px}.user-popover>div{padding:9px 10px;border-bottom:1px solid var(--line);margin-bottom:3px}.user-popover b,.user-popover small{display:block;overflow:hidden;text-overflow:ellipsis}.user-popover small{color:var(--muted);margin-top:3px}.user-popover a,.user-logout,.pwa-install{padding:9px 10px;border:0;background:transparent;text-align:left;border-radius:9px;width:100%;cursor:pointer;color:var(--text)}.user-popover a:hover,.user-logout:hover,.pwa-install:hover{background:#eef7f2}.user-logout{color:#9a3e3e}
.collection-page-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;align-items:start}.collection-filter-panel{position:sticky;top:94px;padding:16px;max-height:calc(100vh - 116px);overflow:auto}.filter-panel-title{display:flex;justify-content:space-between;align-items:center;font-size:17px;margin-bottom:14px}.filter-collapse{border:0;background:transparent;font-size:22px;color:var(--muted);cursor:pointer}.filter-stack{display:grid;gap:12px}.filter-stack label{display:grid;gap:5px;font-size:12px;font-weight:750}.filter-stack input,.filter-stack select{font-size:13px}.filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:4px}.collection-filter-panel.collapsed{width:58px;padding:12px 8px;overflow:hidden}.collection-filter-panel.collapsed .filter-stack,.collection-filter-panel.collapsed .filter-panel-title b{display:none}.collection-filter-panel.collapsed+.collection-results{margin-left:-210px}.collection-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.view-toggle{display:flex;background:#eef2ef;border-radius:11px;padding:3px}.view-toggle a{padding:8px 13px;border-radius:8px;font-weight:750;font-size:13px}.view-toggle a.active{background:var(--green);color:#fff}.sort-control{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.sort-control select{width:auto;min-width:150px}.mobile-filter-btn{display:none}.active-filter-chips{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 12px}.active-chip{background:#e8f5ed!important;color:#226648!important;border:1px solid #d3eadc}.collection-tip{padding:10px 12px;border-radius:10px;background:#edf7f1;color:#496b5a;font-size:12px;margin-bottom:12px}.collection-table{padding:0;overflow:auto}.collection-table table{min-width:1050px}.collection-table th{background:#f3f6f4;position:sticky;top:0;z-index:1}.table-thumb{width:46px;height:58px;border-radius:7px;background:#eef3f0;display:grid;place-items:center;overflow:hidden}.table-thumb img{width:100%;height:100%;object-fit:cover}.type-badge{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f0f4f1;font-size:11px;white-space:nowrap}.external-owned{display:block;color:#856338;margin-top:3px;font-size:10px}.loan-badge{display:inline-flex;padding:5px 7px;border-radius:999px;font-size:10px;white-space:nowrap}.loan-badge.out{background:#fff2e5;color:#9a5a18}.loan-badge.in{background:#e9f0ff;color:#355a97}.pager-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px;color:var(--muted);font-size:12px}.pager-line>div{display:flex;align-items:center;gap:8px}.page-pill{padding:7px 10px;background:#edf3ef;border-radius:9px}.collection-mosaic{grid-template-columns:repeat(5,minmax(0,1fr))}
.loan-top{margin-bottom:18px}.loan-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.loan-summary div{background:#f1f6f3;border-radius:12px;padding:15px;text-align:center}.loan-summary b{display:block;font-size:27px;color:var(--green)}.loan-summary small{color:var(--muted)}.wish-grid{display:grid;gap:12px}.wish-card h2{margin:10px 0 4px}.wish-card-head{display:flex;align-items:center;justify-content:space-between}.wish-priority{padding:5px 8px;border-radius:999px;font-size:10px}.wish-priority.high{background:#fee8e8;color:#994040}.wish-priority.normal{background:#edf5ef;color:#3c7055}.wish-priority.low{background:#f3f3f3;color:#747474}.status.ok{color:#176b4b;font-weight:700}.status.error{color:#a84141;font-weight:700}
.mobile-nav-five{grid-template-columns:repeat(5,1fr)}
@media(max-width:1180px){.collection-page-grid{grid-template-columns:240px minmax(0,1fr)}.collection-mosaic{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.collection-page-grid{display:block}.collection-filter-panel{position:fixed;z-index:50;inset:auto 10px 78px 10px;top:90px;max-height:calc(100vh - 180px);transform:translateY(120%);transition:.2s}.collection-filter-panel.mobile-open{transform:translateY(0)}.collection-filter-panel.collapsed{width:auto}.collection-filter-panel.collapsed .filter-stack,.collection-filter-panel.collapsed .filter-panel-title b{display:initial}.collection-filter-panel.collapsed+.collection-results{margin-left:0}.filter-collapse{display:none}.mobile-filter-btn{display:inline-flex}.collection-controls{flex-wrap:wrap}.collection-mosaic{grid-template-columns:repeat(3,minmax(0,1fr))}.user-menu-copy{display:none}.loan-top,.wishes-layout{grid-template-columns:1fr}}
@media(max-width:760px){.sidebar{display:none}.topbar{position:sticky;top:0}.global-search{width:calc(100% - 52px)}.user-menu summary>span:last-child{display:none}.user-popover{right:-4px}.collection-controls{align-items:stretch}.sort-control{width:100%;justify-content:space-between}.sort-control select{flex:1}.collection-table table{min-width:0}.collection-table thead{display:none}.collection-table tbody,.collection-table tr,.collection-table td{display:block}.collection-table tr{position:relative;padding:10px 12px 10px 78px;min-height:84px;border-bottom:1px solid var(--line)}.collection-table td{border:0!important;padding:2px 0}.collection-table td:first-child{position:absolute;left:12px;top:11px}.collection-table td:nth-child(3),.collection-table td:nth-child(8),.collection-table td:nth-child(9){display:none}.collection-table td:nth-child(4){font-size:11px}.collection-table td:nth-child(5),.collection-table td:nth-child(6),.collection-table td:nth-child(7){display:inline;margin-right:8px;font-size:10px;color:var(--muted)}.collection-mosaic{grid-template-columns:repeat(2,minmax(0,1fr))}.pager-line{align-items:flex-start}.mobile-nav-five{display:grid}.loan-summary{grid-template-columns:repeat(3,1fr)}}

/* v0.5.1 — prêts recherchables et administration multi-famille */
.loan-item-picker{position:relative}.loan-search-results{margin-top:.55rem;border:1px solid var(--line,#dbe3dd);border-radius:14px;background:#fff;box-shadow:0 16px 32px rgba(20,48,37,.10);overflow:hidden;max-height:410px;overflow-y:auto;z-index:4}.loan-result{width:100%;display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;text-align:left;border:0;border-bottom:1px solid var(--line,#e4e9e5);background:#fff;padding:10px 12px;color:inherit}.loan-result:last-child{border-bottom:0}.loan-result:hover:not(:disabled){background:#f3f8f5}.loan-result:disabled{opacity:.58;cursor:not-allowed}.loan-result img,.loan-selected-item img{width:48px;height:56px;border-radius:8px;object-fit:cover;background:#edf1ee}.loan-result-placeholder{width:48px;height:56px;border-radius:8px;background:#edf1ee;display:grid;place-items:center;font-size:24px;color:#779086}.loan-result-copy{min-width:0;display:grid;gap:2px}.loan-result-copy b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.loan-result-copy small{color:var(--muted,#718078);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.loan-search-empty{padding:14px;color:var(--muted,#718078)}.loan-selected-item{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;margin-top:.65rem;padding:11px;border:1px solid #bcd8c9;background:#f0f8f4;border-radius:14px}.loan-selected-item>div{display:grid;gap:2px;min-width:0}.loan-selected-item small{color:var(--muted,#718078)}#loan-submit:disabled{opacity:.45;cursor:not-allowed}
.app-family-layout{align-items:start}.section-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.app-family-list{display:grid;gap:10px;margin-top:14px}.app-family-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line,#e3e8e4)}.app-family-row:last-child{border-bottom:0}.app-family-title{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.app-family-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.app-family-actions details{position:relative}.app-family-actions summary{list-style:none}.app-family-actions summary::-webkit-details-marker{display:none}.popover-form{position:absolute;right:0;top:calc(100% + 7px);z-index:10;width:280px;background:#fff;border:1px solid var(--line,#dbe3dd);border-radius:14px;padding:14px;box-shadow:0 18px 40px rgba(20,48,37,.14);display:grid;gap:10px}.family-security-note{margin-top:16px;padding:12px 14px;border-radius:12px;background:#eef7f2;color:#315c49;font-size:.92rem}
@media(max-width:760px){.loan-result,.loan-selected-item{grid-template-columns:44px minmax(0,1fr)}.loan-result img,.loan-selected-item img,.loan-result-placeholder{width:42px;height:50px}.loan-result>.status,.loan-selected-item>.btn{grid-column:2;justify-self:start}.app-family-row{align-items:flex-start;flex-direction:column}.app-family-actions{width:100%}.popover-form{left:0;right:auto;width:min(82vw,300px)}.app-family-layout{grid-template-columns:1fr!important}}

/* v0.6.0 — thème utilisateur, ajout en masse, prêts inter-familles */
.theme-picker{padding:8px 10px;border-top:1px solid var(--line);margin-top:3px}.theme-picker small{display:block;color:var(--muted);margin-bottom:5px}.theme-form select{padding:7px 9px;font-size:12px}
.bulk-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0}.bulk-entry h2{margin:4px 0 5px}.bulk-defaults,.bulk-capture,.bulk-scanner-panel{margin-bottom:16px}.bulk-capture-head,.bulk-list-head,.scan-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.bulk-capture-head h2,.bulk-list-head h2,.bulk-defaults h2,.bulk-scanner-panel h2{margin-top:0}.bulk-search-line{display:grid;grid-template-columns:1fr auto;gap:9px}.bulk-search-results{margin-top:10px;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--surface);max-height:380px;overflow-y:auto}.bulk-result{width:100%;display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:11px;padding:9px 11px;border:0;border-bottom:1px solid var(--line);background:var(--surface);color:var(--text);text-align:left}.bulk-result:last-child{border-bottom:0}.bulk-result:hover{background:var(--green-soft)}.bulk-result img,.bulk-result>span:first-child{width:46px;height:58px;object-fit:cover;border-radius:7px;background:var(--surface2);display:grid;place-items:center}.bulk-result>span:nth-child(2){display:grid;gap:2px;min-width:0}.bulk-result small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bulk-result strong{font-size:23px;color:var(--green)}.bulk-result-empty{padding:13px;color:var(--muted)}.bulk-result-empty.error{color:var(--danger)}.bulk-paste{margin-top:10px}.bulk-paste summary{cursor:pointer;color:var(--green);font-weight:700}.bulk-items{display:grid;gap:10px;padding-bottom:90px}.bulk-empty{text-align:center;color:var(--muted);padding:28px}.bulk-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:13px;align-items:start;padding:12px}.bulk-cover{width:62px;height:82px;border-radius:8px;overflow:hidden;background:var(--surface2);display:grid;place-items:center;font-size:28px}.bulk-cover img{width:100%;height:100%;object-fit:cover}.bulk-book-main{min-width:0;display:grid;gap:10px}.bulk-book-title{display:grid;gap:2px}.bulk-book-title small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bulk-row-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.bulk-row-fields label{display:grid;gap:4px;font-size:11px;font-weight:750}.icon-btn{border:0;background:transparent;border-radius:8px;width:32px;height:32px;font-size:20px;cursor:pointer}.icon-btn.danger{color:var(--danger)}.bulk-sticky{position:sticky;bottom:12px;z-index:12;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border:1px solid var(--line);box-shadow:0 12px 30px rgba(20,45,33,.15);border-radius:14px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.bulk-sticky>div{display:grid;gap:2px}.bulk-sticky small{color:var(--muted)}.camera-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.camera-controls label{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.camera-controls input[type=range]{width:130px}.loan-inbox{margin-bottom:18px;border-color:#c6dfd1;background:#f5fbf7}.loan-proposal{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.loan-proposal:last-child{border-bottom:0}.loan-proposal>div:first-child{display:grid;gap:3px}.loan-proposal small{color:var(--muted)}.chip.warn{background:#fff2d8;color:#8a6318}.counterparty-result{grid-template-columns:52px minmax(0,1fr)!important}

html[data-theme="dark"],html.theme-system-dark{--bg:#111914;--surface:#18231d;--surface2:#223028;--text:#edf5f0;--muted:#9fb0a6;--line:#314139;--accent:#58b989;--accent2:#20382c;--danger:#ef8181;--dark:#0d1511;--shadow:0 10px 28px rgba(0,0,0,.28);--green:#55b984;--green-dark:#0d1711;--green-soft:#20382d;background:var(--bg);color-scheme:dark}
html[data-theme="dark"] body,html.theme-system-dark body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] .topbar,html.theme-system-dark .topbar{background:rgba(17,25,20,.94)}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html.theme-system-dark input,html.theme-system-dark select,html.theme-system-dark textarea{background:#121c16;color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .global-search input,html.theme-system-dark .global-search input{background:#121c16}
html[data-theme="dark"] .btn,html.theme-system-dark .btn{background:#1b2821;color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .btn.primary,html.theme-system-dark .btn.primary{background:var(--green);color:#07110c;border-color:var(--green)}
html[data-theme="dark"] .btn.soft,html.theme-system-dark .btn.soft{background:#213b2f;color:#9ce0bd}
html[data-theme="dark"] .user-popover,html.theme-system-dark .user-popover,html[data-theme="dark"] .loan-search-results,html.theme-system-dark .loan-search-results,html[data-theme="dark"] .loan-result,html.theme-system-dark .loan-result,html[data-theme="dark"] .bulk-sticky,html.theme-system-dark .bulk-sticky{background:#18231d;color:var(--text)}
html[data-theme="dark"] .loan-result:hover:not(:disabled),html.theme-system-dark .loan-result:hover:not(:disabled),html[data-theme="dark"] .user-popover a:hover,html.theme-system-dark .user-popover a:hover,html[data-theme="dark"] .user-logout:hover,html.theme-system-dark .user-logout:hover{background:#22352b}
html[data-theme="dark"] .collection-table th,html.theme-system-dark .collection-table th{background:#1c2922}
html[data-theme="dark"] .loan-summary div,html.theme-system-dark .loan-summary div{background:#203028}
html[data-theme="dark"] .notice,html.theme-system-dark .notice{background:#20382c}
html[data-theme="dark"] .flash.success,html.theme-system-dark .flash.success{background:#1c3b2c;color:#a6e6c2}html[data-theme="dark"] .flash.error,html.theme-system-dark .flash.error{background:#452526;color:#ffc0c0}
html[data-theme="dark"] .loan-inbox,html.theme-system-dark .loan-inbox{background:#182a20}

@media(max-width:760px){.bulk-entry{align-items:stretch;flex-direction:column}.bulk-search-line{grid-template-columns:1fr auto}.bulk-row{grid-template-columns:54px minmax(0,1fr) auto}.bulk-cover{width:52px;height:70px}.bulk-row-fields{grid-template-columns:1fr}.bulk-sticky{bottom:78px;left:8px;right:8px;align-items:stretch}.bulk-sticky small{display:none}.bulk-sticky .btn{white-space:nowrap}.bulk-scanner-panel .scanner{height:42vh;min-height:300px}.loan-proposal{align-items:flex-start;flex-direction:column}.loan-proposal .actions{width:100%}.loan-proposal .actions form,.loan-proposal .actions button{flex:1}.bulk-items{padding-bottom:130px}}
html[data-theme="dark"] .sidebar,html.theme-system-dark .sidebar{background:#121d17;color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .brand,html.theme-system-dark .brand{color:var(--text)}
html[data-theme="dark"] .sidebar nav a,html.theme-system-dark .sidebar nav a{color:#b9c9bf}
html[data-theme="dark"] .sidebar nav a:hover,html[data-theme="dark"] .sidebar nav a.active,html.theme-system-dark .sidebar nav a:hover,html.theme-system-dark .sidebar nav a.active{background:#23362c;color:#fff}
html[data-theme="dark"] .mobile-nav,html.theme-system-dark .mobile-nav{background:#151f19;border-color:var(--line)}
html[data-theme="dark"] .photo-card,html[data-theme="dark"] .mini-btn,html[data-theme="dark"] .popover-form,html.theme-system-dark .photo-card,html.theme-system-dark .mini-btn,html.theme-system-dark .popover-form{background:var(--surface);color:var(--text)}
html[data-theme="dark"] pre,html.theme-system-dark pre{background:#101914;color:#dce8e0}
html[data-theme="dark"] .thumb,html[data-theme="dark"] .hero-placeholder,html.theme-system-dark .thumb,html.theme-system-dark .hero-placeholder{background:linear-gradient(135deg,#1d2a23,#26382e)}
html[data-theme="dark"] .active-filter-chips .active-chip,html.theme-system-dark .active-filter-chips .active-chip{background:#203b2e!important;color:#a8e4c2!important;border-color:#315a45}
/* v0.6.3 — recherche en lot persistante */
.bulk-result.is-added{background:var(--green-soft);opacity:.72;cursor:default}.bulk-result.is-added strong{color:var(--green);font-size:18px}.bulk-search-line input[hidden]{display:none}.bulk-search-line:has(input[hidden]){grid-template-columns:1fr}.bulk-search-line:has(input[hidden]) .btn{justify-self:start}
/* v0.6.7 — viseur code-barres plus efficace */
.scanner-overlay{inset:32% 7%;border:2px solid rgba(255,255,255,.92);font-size:0;box-shadow:0 0 0 999px rgba(0,0,0,.18);}
.scanner-overlay:after{content:'Place le code-barres ici';font-size:13px;font-weight:800;color:#fff;background:rgba(0,0,0,.5);padding:5px 9px;border-radius:999px;position:absolute;left:50%;bottom:-38px;transform:translateX(-50%);white-space:nowrap;}

/* v0.8.0 express + source catalogs */
.express-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0;border-color:#bcd9c8;background:linear-gradient(135deg,var(--surface),var(--green-soft))}.express-context{margin-bottom:16px}.express-defaults{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.express-defaults label{display:grid;gap:5px;font-size:12px;font-weight:750}.express-warning{margin-top:12px;padding:10px 12px;border-radius:10px;background:var(--surface2);color:var(--muted)}.express-scanner{height:420px;max-height:55vh}.express-status{margin-top:10px;font-weight:700;color:var(--green)}.express-log{display:grid;gap:8px}.express-log-row{display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:11px}.express-log-row>span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--surface2)}.express-log-row>div{display:grid;gap:2px}.express-log-row small{color:var(--muted)}.express-log-row.ok>span{background:var(--green-soft);color:var(--green)}.express-log-row.warn>span{background:#fff2d8;color:#8a6318}.express-log-row.error>span{background:#fdeaea;color:var(--danger)}.source-cat-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.source-cat-row:last-child{border-bottom:0}.source-cat-row>div{display:grid;gap:3px}.source-cat-row small{color:var(--muted)}
@media(max-width:900px){.express-defaults{grid-template-columns:1fr 1fr}}@media(max-width:760px){.express-entry{align-items:stretch;flex-direction:column}.express-defaults{grid-template-columns:1fr}.express-scanner{height:48vh;min-height:320px}}


/* v0.8.1 express validation queue */
.express-queue{display:grid;gap:10px}.express-queue-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px}.express-queue-thumb{width:64px;height:64px;border-radius:10px;overflow:hidden;background:var(--surface2);display:grid;place-items:center}.express-queue-thumb img{width:100%;height:100%;object-fit:cover}.express-queue-main{display:grid;gap:10px;min-width:0}.express-queue-main>div:first-child{display:grid;gap:3px}.express-queue-main small{color:var(--muted)}.express-queue-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.express-queue-fields label{display:grid;gap:4px;font-size:11px;font-weight:750}.express-savebar{position:sticky;bottom:0;z-index:20;margin-top:16px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(10px);box-shadow:0 -8px 28px rgba(16,32,24,.10);display:flex;justify-content:space-between;align-items:center;gap:14px}.express-savebar>div:first-child{display:grid;gap:2px}.express-savebar small{color:var(--muted)}
@media(max-width:900px){.express-queue-fields{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.express-queue-row{grid-template-columns:52px minmax(0,1fr) auto}.express-queue-thumb{width:52px;height:52px}.express-queue-fields{grid-template-columns:1fr}.express-savebar{left:0;right:0;border-radius:12px;align-items:stretch;flex-direction:column}.express-savebar .actions{display:grid;grid-template-columns:auto 1fr}.express-savebar .btn.primary{width:100%}}

/* v0.8.5 — scanner express compact et feedback au même endroit */
.express-scan-card{overflow:visible}
.express-scanner{height:clamp(220px,30vh,300px);max-height:none;margin-bottom:10px}
.express-scan-meta{display:flex;align-items:center;gap:10px;min-height:38px}
.express-scan-meta .express-status{margin:0;flex:1}
.express-processing{position:absolute;inset:0;z-index:4;background:rgba(8,18,13,.46);display:flex;align-items:center;justify-content:center;gap:10px;color:#fff;backdrop-filter:blur(1px)}
.express-processing[hidden]{display:none}
.express-spinner{width:22px;height:22px;border:3px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:express-spin .7s linear infinite}
@keyframes express-spin{to{transform:rotate(360deg)}}
.express-last-result{margin-top:8px;border:1px solid var(--line);border-radius:12px;padding:9px 11px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;background:var(--surface2)}
.express-last-result[hidden]{display:none}
.express-last-result img,.express-last-icon{width:42px;height:54px;object-fit:cover;border-radius:7px;background:var(--surface);display:grid;place-items:center;font-size:22px}
.express-last-result>div{display:grid;gap:2px;min-width:0}.express-last-result small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.express-last-result.ok{border-color:#b9d9c7;background:var(--green-soft)}.express-last-result.warn{border-color:#ead7a9;background:#fff7e5}.express-last-result.error{border-color:#efc8c8;background:#fff0f0}
@media(max-width:760px){.express-scanner{height:clamp(200px,28vh,250px);min-height:0}.express-scan-card .section-head{gap:8px}.express-scan-card .section-head .actions{flex-wrap:nowrap}.express-scan-meta{align-items:flex-start}.express-last-result{grid-template-columns:38px minmax(0,1fr)}.express-last-result img,.express-last-icon{width:38px;height:48px}}

/* v0.9.0 — thèmes UI V2, versionnés et optionnels */
html[data-theme="light-v2"],html[data-theme="system-v2"],html[data-theme="dark-v2"]{
  --v2-radius:12px;--v2-radius-sm:9px;--v2-sidebar:218px;
  --bg:#f5f8f6;--surface:#fff;--surface2:#f1f5f3;--text:#17251e;--muted:#687a70;--line:#dce6e0;
  --accent:#0f9b6d;--accent2:#e7f6f0;--green:#0f9b6d;--green-dark:#0d5f4b;--green-deep:#084536;--green-soft:#e7f6f0;
  --dark:#10251d;--shadow:0 6px 20px rgba(24,54,42,.055);color-scheme:light;
}
html[data-theme="light-v2"] body,html[data-theme="system-v2"] body,html[data-theme="dark-v2"] body{font-size:14px;background:var(--bg);color:var(--text)}
html[data-theme="light-v2"] .app-shell,html[data-theme="system-v2"] .app-shell,html[data-theme="dark-v2"] .app-shell{grid-template-columns:var(--v2-sidebar) minmax(0,1fr)}
html[data-theme="light-v2"] .sidebar,html[data-theme="system-v2"] .sidebar{background:#fff;color:var(--text);border-right:1px solid var(--line);padding:16px 12px}
html[data-theme="light-v2"] .brand,html[data-theme="system-v2"] .brand{color:#12352a;padding:2px 7px 17px}
html[data-theme="light-v2"] .brand span,html[data-theme="system-v2"] .brand span{background:#dcf4e9;color:#07885f}
html[data-theme="light-v2"] .brand small,html[data-theme="system-v2"] .brand small{color:#7c8f85}
html[data-theme="light-v2"] .sidebar nav a,html[data-theme="system-v2"] .sidebar nav a{color:#52655b;padding:9px 10px;border-radius:9px}
html[data-theme="light-v2"] .sidebar nav a:hover,html[data-theme="light-v2"] .sidebar nav a.active,html[data-theme="system-v2"] .sidebar nav a:hover,html[data-theme="system-v2"] .sidebar nav a.active{background:#e6f5ee;color:#0c7455}
html[data-theme="light-v2"] .nav-label,html[data-theme="system-v2"] .nav-label{color:#8a9b92;margin-top:14px}
html[data-theme="light-v2"] .side-tagline,html[data-theme="system-v2"] .side-tagline{background:#f3f8f5;border-color:#dfebe4;color:#315a49}
html[data-theme="light-v2"] .side-tagline small,html[data-theme="system-v2"] .side-tagline small{color:#72867b}
html[data-theme="light-v2"] .topbar,html[data-theme="system-v2"] .topbar,html[data-theme="dark-v2"] .topbar{height:62px;padding:0 20px;box-shadow:0 1px 0 var(--line)}
html[data-theme="light-v2"] .topbar,html[data-theme="system-v2"] .topbar{background:rgba(255,255,255,.96)}
html[data-theme="light-v2"] .content,html[data-theme="system-v2"] .content,html[data-theme="dark-v2"] .content{max-width:1540px;padding:20px 22px}
html[data-theme="light-v2"] h1,html[data-theme="system-v2"] h1,html[data-theme="dark-v2"] h1{font-size:27px;margin-top:3px}
html[data-theme="light-v2"] h2,html[data-theme="system-v2"] h2,html[data-theme="dark-v2"] h2{font-size:18px;margin:18px 0 11px}
html[data-theme="light-v2"] .pagehead,html[data-theme="system-v2"] .pagehead,html[data-theme="dark-v2"] .pagehead{margin-bottom:17px}
html[data-theme="light-v2"] .card,html[data-theme="system-v2"] .card,html[data-theme="dark-v2"] .card{border-radius:var(--v2-radius);padding:15px;box-shadow:var(--shadow)}
html[data-theme="light-v2"] input,html[data-theme="light-v2"] select,html[data-theme="light-v2"] textarea,html[data-theme="system-v2"] input,html[data-theme="system-v2"] select,html[data-theme="system-v2"] textarea,html[data-theme="dark-v2"] input,html[data-theme="dark-v2"] select,html[data-theme="dark-v2"] textarea{border-radius:var(--v2-radius-sm);padding:9px 11px}
html[data-theme="light-v2"] .btn,html[data-theme="system-v2"] .btn,html[data-theme="dark-v2"] .btn{border-radius:var(--v2-radius-sm);padding:9px 13px}
html[data-theme="light-v2"] .btn.primary,html[data-theme="system-v2"] .btn.primary{background:#0f9b6d;border-color:#0f9b6d;color:#fff;box-shadow:0 4px 12px rgba(15,155,109,.18)}
html[data-theme="light-v2"] .collection-page-grid,html[data-theme="system-v2"] .collection-page-grid,html[data-theme="dark-v2"] .collection-page-grid{grid-template-columns:245px minmax(0,1fr);gap:16px}
html[data-theme="light-v2"] .collection-filter-panel,html[data-theme="system-v2"] .collection-filter-panel,html[data-theme="dark-v2"] .collection-filter-panel{top:78px;padding:14px;max-height:calc(100vh - 92px)}
html[data-theme="light-v2"] .collection-table th,html[data-theme="system-v2"] .collection-table th{background:#f2f6f4}
html[data-theme="light-v2"] .collection-table td,html[data-theme="system-v2"] .collection-table td,html[data-theme="dark-v2"] .collection-table td{padding-top:8px;padding-bottom:8px}
html[data-theme="light-v2"] .table-thumb,html[data-theme="system-v2"] .table-thumb,html[data-theme="dark-v2"] .table-thumb{width:40px;height:50px}
html[data-theme="light-v2"] .collection-tip,html[data-theme="system-v2"] .collection-tip,html[data-theme="dark-v2"] .collection-tip{font-size:11px;padding:8px 10px;margin-bottom:9px}
html[data-theme="light-v2"] .scanner,html[data-theme="system-v2"] .scanner,html[data-theme="dark-v2"] .scanner{height:clamp(180px,25vh,245px);min-height:0}
html[data-theme="light-v2"] .express-scanner,html[data-theme="system-v2"] .express-scanner,html[data-theme="dark-v2"] .express-scanner{height:clamp(165px,22vh,215px);min-height:0;max-height:215px}
html[data-theme="light-v2"] .bulk-scanner-panel .scanner,html[data-theme="system-v2"] .bulk-scanner-panel .scanner,html[data-theme="dark-v2"] .bulk-scanner-panel .scanner{height:clamp(180px,25vh,235px);min-height:0}
html[data-theme="light-v2"] .bulk-sticky,html[data-theme="system-v2"] .bulk-sticky,html[data-theme="dark-v2"] .bulk-sticky,html[data-theme="light-v2"] .express-savebar,html[data-theme="system-v2"] .express-savebar,html[data-theme="dark-v2"] .express-savebar{border-radius:11px}
html[data-theme="light-v2"] .form-actions,html[data-theme="system-v2"] .form-actions,html[data-theme="dark-v2"] .form-actions{position:sticky;bottom:10px;z-index:15;border-radius:11px}
html[data-theme="light-v2"] .user-menu summary:hover,html[data-theme="system-v2"] .user-menu summary:hover{background:#edf6f1}
html[data-theme="light-v2"] .avatar,html[data-theme="system-v2"] .avatar{background:#dff4ea;color:#087b59}

/* V2 sombre : même géométrie, palette spécifique */
html[data-theme="dark-v2"],html.theme-system-v2-dark{
  --bg:#08111a;--surface:#0e1b25;--surface2:#14242f;--text:#edf7f4;--muted:#92a8a0;--line:#20333d;
  --accent:#2fd6a0;--accent2:#11372d;--green:#2fd6a0;--green-dark:#0b211b;--green-deep:#071612;--green-soft:#11372d;
  --dark:#07120f;--shadow:0 8px 24px rgba(0,0,0,.25);color-scheme:dark;background:var(--bg)
}
html[data-theme="dark-v2"] body,html.theme-system-v2-dark body{background:var(--bg);color:var(--text)}
html[data-theme="dark-v2"] .sidebar,html.theme-system-v2-dark .sidebar{background:#09151d;color:var(--text);border-right:1px solid var(--line);padding:16px 12px}
html[data-theme="dark-v2"] .brand,html.theme-system-v2-dark .brand{color:#f1fbf7;padding:2px 7px 17px}
html[data-theme="dark-v2"] .brand span,html.theme-system-v2-dark .brand span{background:#103a2e;color:#39ddb0}
html[data-theme="dark-v2"] .brand small,html.theme-system-v2-dark .brand small{color:#829b91}
html[data-theme="dark-v2"] .sidebar nav a,html.theme-system-v2-dark .sidebar nav a{color:#adc2ba;padding:9px 10px;border-radius:9px}
html[data-theme="dark-v2"] .sidebar nav a:hover,html[data-theme="dark-v2"] .sidebar nav a.active,html.theme-system-v2-dark .sidebar nav a:hover,html.theme-system-v2-dark .sidebar nav a.active{background:#11392e;color:#51e1b7}
html[data-theme="dark-v2"] .nav-label,html.theme-system-v2-dark .nav-label{color:#6e8d82}
html[data-theme="dark-v2"] .side-tagline,html.theme-system-v2-dark .side-tagline{background:#0d2028;border-color:#1d3740;color:#d6e7e0}
html[data-theme="dark-v2"] .side-tagline small,html.theme-system-v2-dark .side-tagline small{color:#80998f}
html[data-theme="dark-v2"] .topbar,html.theme-system-v2-dark .topbar{background:rgba(8,17,26,.96);border-color:var(--line)}
html[data-theme="dark-v2"] input,html[data-theme="dark-v2"] select,html[data-theme="dark-v2"] textarea,html.theme-system-v2-dark input,html.theme-system-v2-dark select,html.theme-system-v2-dark textarea{background:#0a1720;color:var(--text);border-color:var(--line)}
html[data-theme="dark-v2"] .global-search input,html.theme-system-v2-dark .global-search input{background:#0a1720}
html[data-theme="dark-v2"] .btn,html.theme-system-v2-dark .btn{background:#12212b;color:var(--text);border-color:#29404b}
html[data-theme="dark-v2"] .btn.primary,html.theme-system-v2-dark .btn.primary{background:#20c991;color:#04110c;border-color:#20c991;box-shadow:0 4px 14px rgba(32,201,145,.16)}
html[data-theme="dark-v2"] .btn.soft,html.theme-system-v2-dark .btn.soft{background:#12382e;color:#82ecc7;border-color:#1c4d3e}
html[data-theme="dark-v2"] .card,html.theme-system-v2-dark .card,html[data-theme="dark-v2"] .user-popover,html.theme-system-v2-dark .user-popover,html[data-theme="dark-v2"] .loan-search-results,html.theme-system-v2-dark .loan-search-results,html[data-theme="dark-v2"] .loan-result,html.theme-system-v2-dark .loan-result{background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme="dark-v2"] .collection-table th,html.theme-system-v2-dark .collection-table th{background:#12222c;color:#9db1aa}
html[data-theme="dark-v2"] .collection-table tr:hover,html.theme-system-v2-dark .collection-table tr:hover{background:#101f28}
html[data-theme="dark-v2"] .view-toggle,html.theme-system-v2-dark .view-toggle{background:#14242f}
html[data-theme="dark-v2"] .active-chip,html.theme-system-v2-dark .active-chip{background:#11382d!important;color:#93e8c7!important;border-color:#215442}
html[data-theme="dark-v2"] .collection-tip,html.theme-system-v2-dark .collection-tip{background:#102a24;color:#99c5b5;border-color:#1b4035}
html[data-theme="dark-v2"] .user-menu summary:hover,html.theme-system-v2-dark .user-menu summary:hover{background:#12232d}
html[data-theme="dark-v2"] .avatar,html.theme-system-v2-dark .avatar{background:#123b30;color:#5be4bc}
html[data-theme="dark-v2"] .user-popover a:hover,html[data-theme="dark-v2"] .user-logout:hover,html.theme-system-v2-dark .user-popover a:hover,html.theme-system-v2-dark .user-logout:hover{background:#142b25}
html[data-theme="dark-v2"] .thumb,html[data-theme="dark-v2"] .hero-placeholder,html.theme-system-v2-dark .thumb,html.theme-system-v2-dark .hero-placeholder{background:linear-gradient(135deg,#12232c,#1a3039)}
html[data-theme="dark-v2"] .bulk-sticky,html.theme-system-v2-dark .bulk-sticky,html[data-theme="dark-v2"] .express-savebar,html.theme-system-v2-dark .express-savebar,html[data-theme="dark-v2"] .form-actions,html.theme-system-v2-dark .form-actions{background:rgba(14,27,37,.96);border-color:var(--line);box-shadow:0 -8px 24px rgba(0,0,0,.24)}
html[data-theme="dark-v2"] .express-last-result,html.theme-system-v2-dark .express-last-result{background:#13242d;border-color:var(--line)}

@media(max-width:900px){
 html[data-theme="light-v2"] .collection-page-grid,html[data-theme="system-v2"] .collection-page-grid,html[data-theme="dark-v2"] .collection-page-grid{display:block}
}
@media(max-width:760px){
 html[data-theme="light-v2"] .app-shell,html[data-theme="system-v2"] .app-shell,html[data-theme="dark-v2"] .app-shell{display:block}
 html[data-theme="light-v2"] .sidebar,html[data-theme="system-v2"] .sidebar,html[data-theme="dark-v2"] .sidebar{display:none}
 html[data-theme="light-v2"] .topbar,html[data-theme="system-v2"] .topbar,html[data-theme="dark-v2"] .topbar{height:54px;padding:0 10px}
 html[data-theme="light-v2"] .content,html[data-theme="system-v2"] .content,html[data-theme="dark-v2"] .content{padding:13px 10px calc(82px + env(safe-area-inset-bottom))}
 html[data-theme="light-v2"] h1,html[data-theme="system-v2"] h1,html[data-theme="dark-v2"] h1{font-size:23px}
 html[data-theme="light-v2"] .pagehead,html[data-theme="system-v2"] .pagehead,html[data-theme="dark-v2"] .pagehead{margin-bottom:12px}
 html[data-theme="light-v2"] .card,html[data-theme="system-v2"] .card,html[data-theme="dark-v2"] .card{padding:12px;border-radius:11px}
 html[data-theme="light-v2"] .scanner,html[data-theme="system-v2"] .scanner,html[data-theme="dark-v2"] .scanner{height:185px;min-height:0}
 html[data-theme="light-v2"] .express-scanner,html[data-theme="system-v2"] .express-scanner,html[data-theme="dark-v2"] .express-scanner{height:160px;min-height:0;max-height:160px}
 html[data-theme="light-v2"] .bulk-scanner-panel .scanner,html[data-theme="system-v2"] .bulk-scanner-panel .scanner,html[data-theme="dark-v2"] .bulk-scanner-panel .scanner{height:190px;min-height:0}
 html[data-theme="light-v2"] .mobile-nav,html[data-theme="system-v2"] .mobile-nav{background:rgba(255,255,255,.97)}
 html[data-theme="dark-v2"] .mobile-nav,html.theme-system-v2-dark .mobile-nav{background:rgba(9,21,29,.97);border-color:var(--line)}
 html[data-theme="dark-v2"] .mobile-nav a,html.theme-system-v2-dark .mobile-nav a{color:#91a69e}
 html[data-theme="light-v2"] .collection-table tr,html[data-theme="system-v2"] .collection-table tr,html[data-theme="dark-v2"] .collection-table tr{min-height:76px;padding-top:8px;padding-bottom:8px}
 html[data-theme="light-v2"] .form-actions,html[data-theme="system-v2"] .form-actions,html[data-theme="dark-v2"] .form-actions{bottom:74px;margin-left:-10px;margin-right:-10px;padding:9px 10px}
 html[data-theme="light-v2"] .express-savebar,html[data-theme="system-v2"] .express-savebar,html[data-theme="dark-v2"] .express-savebar{bottom:72px}
}

/* v0.9.1 — ajout vocal */
.voice-context{margin-bottom:16px}.voice-defaults{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.voice-defaults label{display:grid;gap:5px;font-size:12px;font-weight:750}.voice-workspace{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px;align-items:start}.voice-capture,.voice-list-card{min-height:420px}.voice-mic-zone{display:grid;place-items:center;gap:10px;padding:18px 0 12px}.voice-mic{width:96px;height:96px;border-radius:50%;border:8px solid color-mix(in srgb,var(--green-soft) 85%,transparent);background:var(--green);color:white;font-size:38px;box-shadow:0 10px 28px rgba(25,115,78,.22);cursor:pointer}.voice-mic.is-listening{background:#d34b4b;border-color:#fde4e4;animation:voice-pulse 1.2s ease-in-out infinite}.voice-mic:disabled{opacity:.45;cursor:not-allowed}@keyframes voice-pulse{50%{transform:scale(1.05)}}.voice-wave{height:30px;display:flex;align-items:center;gap:4px}.voice-wave i{display:block;width:4px;height:10px;border-radius:5px;background:var(--green);animation:voice-wave .8s ease-in-out infinite}.voice-wave i:nth-child(2),.voice-wave i:nth-child(6){animation-delay:.1s}.voice-wave i:nth-child(3),.voice-wave i:nth-child(5){animation-delay:.2s}.voice-wave i:nth-child(4){animation-delay:.3s}@keyframes voice-wave{50%{height:28px}}.voice-heard{padding:12px 14px;border-radius:12px;background:var(--surface2);display:grid;gap:4px;margin-top:8px}.voice-heard small{color:var(--muted)}.voice-heard strong{font-size:18px}.voice-status{margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--green-soft);color:var(--text)}.voice-fallback{margin-top:12px;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.voice-fallback label{display:grid;gap:5px}.voice-fallback[hidden]{display:none}.voice-choices{margin-top:12px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.voice-choices[hidden]{display:none}.voice-choice-head{padding:10px 12px;background:var(--surface2);display:grid;gap:2px}.voice-choice-head small{color:var(--muted)}.voice-choice{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) 28px;gap:10px;align-items:center;border:0;border-top:1px solid var(--line);background:var(--surface);color:var(--text);padding:9px 11px;text-align:left;cursor:pointer}.voice-choice:hover{background:var(--green-soft)}.voice-choice img,.voice-choice>span:first-child{width:40px;height:52px;object-fit:cover;border-radius:6px;background:var(--surface2);display:grid;place-items:center}.voice-choice>span:nth-child(2){display:grid;gap:2px;min-width:0}.voice-choice small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.voice-choice strong{font-size:22px;color:var(--green)}.voice-free-choice{margin:10px}.voice-queue{display:grid;gap:9px;max-height:620px;overflow:auto;padding-right:2px}.voice-row{display:grid;grid-template-columns:32px 52px minmax(0,1fr) auto;gap:10px;align-items:start;border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--surface)}.voice-row:not(.is-selected){opacity:.62}.voice-check{padding-top:14px}.voice-check input{width:20px;height:20px}.voice-thumb{width:50px;height:64px;border-radius:7px;background:var(--surface2);display:grid;place-items:center;overflow:hidden}.voice-thumb img{width:100%;height:100%;object-fit:cover}.voice-row-main{display:grid;gap:9px;min-width:0}.voice-row-main>div:first-child{display:grid;gap:2px}.voice-row-main small{color:var(--muted)}.voice-row-main em{font-style:normal;justify-self:start}.voice-row-fields{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:7px}.voice-row-fields label{display:grid;gap:3px;font-size:11px;font-weight:750}.voice-savebar{position:sticky;bottom:12px;z-index:21;margin-top:16px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface) 95%,transparent);backdrop-filter:blur(10px);box-shadow:0 -8px 28px rgba(16,32,24,.10);display:flex;justify-content:space-between;align-items:center;gap:14px}.voice-savebar>div:first-child{display:grid;gap:2px}.voice-savebar small{color:var(--muted)}
@media(max-width:1000px){.voice-defaults{grid-template-columns:1fr 1fr}.voice-workspace{grid-template-columns:1fr}.voice-capture,.voice-list-card{min-height:0}.voice-queue{max-height:none}.voice-row-fields{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.voice-defaults{grid-template-columns:1fr}.voice-mic{width:84px;height:84px;font-size:32px}.voice-row{grid-template-columns:28px 44px minmax(0,1fr) auto}.voice-thumb{width:42px;height:54px}.voice-row-fields{grid-template-columns:1fr}.voice-savebar{bottom:72px;align-items:stretch;flex-direction:column}.voice-savebar .actions{display:grid;grid-template-columns:auto 1fr}.voice-savebar .btn.primary{width:100%}.voice-fallback{grid-template-columns:1fr}.voice-heard strong{font-size:16px}}
.voice-free-title{display:grid;gap:3px;font-size:11px;font-weight:750}.voice-free-title input{font-weight:800}
/* v0.9.3 - mobile-first UX compact */
.mobile-home-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:14px}.mobile-home-head h1{margin-bottom:0}.mobile-home-add{white-space:nowrap}.home-category-strip{display:flex;gap:10px;overflow:auto;padding:2px 2px 8px;scrollbar-width:none}.home-category-strip::-webkit-scrollbar{display:none}.home-category-chip{flex:0 0 128px;min-height:84px;border:1px solid var(--line);background:var(--surface);border-radius:14px;display:grid;place-items:center;align-content:center;gap:6px;box-shadow:var(--shadow)}.home-category-chip span{font-size:27px}.home-category-chip b{font-size:13px;text-align:center}.home-category-chip.more{flex-basis:90px}.home-stats-inline{display:grid;grid-template-columns:1fr 1px 1fr 1px 1fr 1px 1fr;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px;margin:8px 0 18px}.home-stats-inline>span{height:34px;background:var(--line)}.home-stats-inline a,.home-stats-inline div{text-align:center;display:grid;gap:1px}.home-stats-inline b{font-size:22px}.home-stats-inline small{font-size:11px;color:var(--muted)}.home-section-title{display:flex;justify-content:space-between;align-items:center;margin-top:18px}.home-section-title h2{margin:0 0 10px}.home-section-title a{font-size:12px;color:var(--green);font-weight:750}.home-quick-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.home-quick{border:1px solid var(--line);background:var(--surface);border-radius:13px;padding:11px 8px;display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center;box-shadow:var(--shadow)}.home-quick>span{font-size:24px}.home-quick b,.home-quick small{display:block}.home-quick b{font-size:13px}.home-quick small{font-size:10px;color:var(--muted)}.home-recent-list{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface)}.home-recent-row{display:grid;grid-template-columns:48px 1fr auto;gap:10px;align-items:center;padding:9px 11px;border-bottom:1px solid var(--line)}.home-recent-row:last-child{border-bottom:0}.home-recent-thumb{width:48px;height:52px;border-radius:8px;overflow:hidden;background:var(--surface2);display:grid;place-items:center;font-size:21px}.home-recent-thumb img{width:100%;height:100%;object-fit:cover}.home-recent-row b,.home-recent-row small{display:block}.home-recent-row b{font-size:14px}.home-recent-row small{font-size:11px;color:var(--muted);margin-top:2px}.collection-mobile-type{display:none}.collection-head p{margin:0}.collection-results>.pagehead{align-items:center}
@media(max-width:760px){
 .mobile-home-head{align-items:center;margin-bottom:10px}.mobile-home-head .eyebrow{font-size:10px}.mobile-home-head h1{font-size:26px}.mobile-home-add{padding:9px 13px;font-size:14px}.home-category-chip{flex-basis:96px;min-height:70px;border-radius:12px}.home-category-chip span{font-size:22px}.home-category-chip b{font-size:11px}.home-category-chip.more{flex-basis:72px}.home-stats-inline{padding:9px 5px;margin:5px 0 14px}.home-stats-inline b{font-size:19px}.home-stats-inline small{font-size:9px}.home-section-title{margin-top:13px}.home-section-title h2{font-size:18px;margin-bottom:8px}.home-quick-strip{grid-template-columns:repeat(4,1fr);gap:6px}.home-quick{display:grid;grid-template-columns:1fr;text-align:center;gap:2px;padding:9px 3px}.home-quick>span{font-size:21px}.home-quick b{font-size:11px}.home-quick small{font-size:8px}.home-recent-row{grid-template-columns:40px 1fr auto;padding:7px 9px}.home-recent-thumb{width:40px;height:44px}.home-recent-row b{font-size:13px}.home-recent-row small{font-size:10px}
 .collection-head{display:flex!important;align-items:center!important;margin-bottom:8px!important}.collection-head .eyebrow{display:none}.collection-head h1{font-size:25px!important;margin:0 0 2px}.collection-head p{font-size:12px}.collection-head>.btn{margin-top:0!important;padding:9px 12px;font-size:13px}
 .collection-mobile-type{display:block;margin:0 0 8px}.collection-mobile-type label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:5px 9px}.collection-mobile-type label span{font-size:11px;color:var(--muted);font-weight:750}.collection-mobile-type select{border:0;padding:7px 4px;background:transparent;font-weight:750}
 .collection-controls{display:grid!important;grid-template-columns:auto auto 1fr;gap:6px!important;margin-bottom:8px!important}.view-toggle a{padding:7px 9px;font-size:11px}.mobile-filter-btn{padding:7px 10px;font-size:11px}.sort-control{width:auto!important;display:block!important}.sort-control{font-size:0}.sort-control select{min-width:0!important;width:100%!important;padding:8px 28px 8px 9px;font-size:11px}
 .active-filter-chips{flex-wrap:nowrap!important;overflow:auto;margin-bottom:7px!important}.active-filter-chips::-webkit-scrollbar{display:none}.active-chip{white-space:nowrap;font-size:10px!important;padding:4px 7px!important}
 .collection-table tr{min-height:68px!important;padding:7px 28px 7px 61px!important}.collection-table td:first-child{left:8px!important;top:8px!important}.table-thumb{width:42px!important;height:50px!important}.collection-table td:nth-child(2) b{font-size:14px;line-height:1.15}.collection-table td:nth-child(4){font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}.collection-table td:nth-child(5),.collection-table td:nth-child(6),.collection-table td:nth-child(7){font-size:9px!important;margin-right:5px!important}.collection-table td:nth-child(9){display:block!important;position:absolute;right:7px;top:8px}.collection-table td:nth-child(9) .mini-btn{border:0;padding:2px;font-size:0}.collection-table td:nth-child(9) .mini-btn:after{content:'⋮';font-size:18px}.collection-mosaic{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.pwa-install{padding:9px 10px;border:0;background:transparent;text-align:left;border-radius:9px;width:100%;cursor:pointer;color:var(--text);font:inherit}.pwa-install:hover{background:#eef7f2}.pwa-install[hidden]{display:none!important}.pwa-install:disabled{opacity:.55;cursor:default}
html[data-theme="dark"] .pwa-install:hover,html.theme-system-dark .pwa-install:hover{background:#22352b}
html[data-theme="dark-v2"] .pwa-install:hover,html.theme-system-v2-dark .pwa-install:hover{background:#142b25}

/* PWA install prompt — v0.9.7 */
.pwa-install-banner[hidden]{display:none!important}
.pwa-install-banner{position:fixed;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:1200;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--border,#d6ddd9);border-radius:16px;background:var(--surface,#fff);box-shadow:0 12px 36px rgba(0,0,0,.18)}
.pwa-install-icon{font-size:28px;line-height:1}.pwa-install-copy{display:flex;min-width:0;flex-direction:column;gap:2px}.pwa-install-copy strong{font-size:15px}.pwa-install-copy span{font-size:13px;opacity:.78}.pwa-install-actions{display:flex;gap:8px;align-items:center}
@media (max-width:640px){.pwa-install-banner{grid-template-columns:auto minmax(0,1fr);align-items:start}.pwa-install-actions{grid-column:1/-1;justify-content:flex-end;width:100%}}
