:root{color-scheme:light;--bg:#f5f6f8;--panel:#fff;--line:#e6e8ed;--text:#20242e;--muted:#737b89;--accent:#3568d4;--cyan:#278879;--red:#bf4658;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #6696f3}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#333b4b;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}button:hover,.button:hover{background:#f1f4f8;border-color:#cdd4df}button:disabled{opacity:.4;cursor:default}.primary{background:#3168d5;border-color:#3168d5;color:#fff;box-shadow:0 2px 3px #234e9a12}.primary:hover{background:#275bc0;border-color:#275bc0}.quiet{background:transparent}.danger{color:#b43a48;border-color:#e8cbd0;background:#fff9fa}.text-button{border:0;background:none;color:#3867b8;padding:3px 0;font-size:12px}.text-button:hover{background:none;color:#194a99}.full-width{width:100%}.muted,small,.meta,.subtitle{color:var(--muted)}small{font-size:12px}h1,h2,h3,p{margin:0}h1{font-size:31px;letter-spacing:-1px;line-height:1.25;font-weight:650}h2{font-size:17px;letter-spacing:-.3px;font-weight:620}h3{font-size:15px;font-weight:620}p{margin:8px 0 14px}.text{white-space:pre-wrap;overflow-wrap:anywhere}.eyebrow{font-size:10px;color:#8a919f;letter-spacing:1.4px;font-weight:650}.loading{padding:90px 20px;text-align:center;color:var(--muted)}.layout{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{background:#fafbfc;border-right:1px solid var(--line);padding:28px 15px;position:sticky;top:0;height:100vh;overflow:auto;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:0 9px 26px;font-size:20px;font-weight:720;letter-spacing:-.6px}.brand img{width:39px;height:39px;object-fit:contain}.brand small{font-size:8px;letter-spacing:1.1px;font-weight:500;display:block;margin-top:2px}.server-card{display:flex;gap:10px;padding:11px;border:1px solid var(--line);border-radius:11px;background:#fff;margin-bottom:7px}.server-card strong{font-size:12px;display:block}.server-card small{font-size:10px;display:block;color:#598274}.server-symbol{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#f0f2f6;color:#5f6b80;font-weight:650}.nav-label{font-size:9px;letter-spacing:1.3px;color:#969daa;margin:25px 12px 10px}.nav{display:flex;flex-direction:column;gap:4px}.nav button{background:none;border-color:transparent;justify-content:flex-start;font-size:12px;padding:10px 12px;color:#677184;text-align:left}.nav button:hover{background:#eff2f7}.nav button.active{background:#eaf0fb;color:#2b5cba;font-weight:600}.archives{margin-top:17px}.archives summary{padding:10px 12px;list-style:none;color:#677184;font-size:12px;cursor:pointer}.archives summary:after{content:'⌄';float:right}.archives .nav{margin:4px 0 0 12px;border-left:1px solid #e0e4eb;padding-left:6px}.archives .nav button{font-size:11px}.sidebar-status{margin-top:auto;padding:28px 12px 0;color:#6e7c78;font-size:11px}.sidebar-status small{display:block;font-size:10px;margin:4px 0 0 14px}.dot{display:inline-block;width:6px;height:6px;background:#4f9b7d;border-radius:50%;margin-right:8px}.main{min-width:0}.topbar{height:76px;padding:18px 38px;background:#ffffffd9;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.breadcrumb{display:flex;gap:12px;font-size:12px}.breadcrumb strong{font-weight:550}.identity{display:flex;gap:13px;align-items:center}.identity .avatar{width:30px;height:30px;border-radius:50%}.user-name{font-size:12px}.identity button{font-size:11px;padding:8px 11px}.notification{position:relative;border:0}.notification[data-count]:after{content:attr(data-count);position:absolute;right:-1px;top:-3px;padding:1px 5px;border-radius:10px;color:#fff;background:#c96670;font-size:9px}.content{padding:34px 38px 45px;max-width:1550px;margin:auto}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.heading h1{margin:5px 0 9px}.heading .muted{font-size:12px}.badge{display:inline-flex;align-items:center;white-space:nowrap;font-size:10px;color:#4f7e6a;background:#edf6f0;border:1px solid #dcebe1;border-radius:20px;padding:4px 9px}.badge.warn{color:#93733a;background:#faf5eb;border-color:#ece2cd}.count{border-radius:7px;background:#f1f3f6;padding:3px 8px;font-size:12px;color:#6d7889}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:23px;min-width:0;box-shadow:0 2px 3px #24304c03}.hero{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:15px;padding:30px 33px;margin-bottom:22px;overflow:hidden;position:relative}.hero-copy{max-width:660px;flex:1}.hero h2{white-space:pre-line;font-size:27px;line-height:1.28;letter-spacing:-.8px;font-weight:600;margin:10px 0 12px}.hero p{color:var(--muted);font-size:12px;max-width:460px;margin-bottom:22px}.hero-wolf{width:116px;height:116px;object-fit:contain;margin:0 25px 0 35px;opacity:.8}.hero-search{display:flex;align-items:center;gap:12px;border:1px solid #dce2ec;border-radius:10px;background:#f8fafc;padding:6px 7px 6px 14px}.hero-search>span{font-size:24px;color:#98a4b5}.hero-search input{border:0;background:none;padding:5px 0;min-width:0;font-size:12px;box-shadow:none}.hero-search button{font-size:11px;white-space:nowrap}.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:30px}.stat{display:block;text-align:left;padding:19px 22px}.stat-label{display:flex;gap:9px;align-items:center;color:#7d8797;font-size:11px}.stat-icon{color:#6b7c98;font-size:17px}.stat strong{display:block;font-size:28px;letter-spacing:-.8px;margin:12px 0 5px;font-weight:600;color:#27354b}.stat small{font-size:10px}.section-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:19px}.section-heading .muted{font-size:11px}.section-heading p{font-size:12px;margin:5px 0 0}.quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:26px}.action-card{display:block;text-align:left;padding:23px;position:relative}.action-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid #e1e8f4;background:#f0f5fe;border-radius:9px;color:#5275ae;margin-bottom:18px;font-size:19px}.amber .action-icon{background:#faf6ee;color:#a58a58;border-color:#eee6d8}.teal .action-icon{background:#edf7f4;color:#639287;border-color:#dcebe6}.action-card h3{font-size:14px;margin-bottom:7px}.action-card p{font-size:11px;color:var(--muted);max-width:240px;margin:0 0 18px}.action-arrow{color:#5b7cb0;font-size:11px}.split{display:grid;grid-template-columns:1.65fr 1fr;gap:22px;margin-bottom:22px}.list-row{display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line);padding:15px 0}.list-row:last-child{border:0}.list-row strong{font-size:12px;font-weight:550}.list-row p{font-size:11px;margin:4px 0 0;color:var(--muted)}.list-row small{font-size:10px}.grow{flex:1;min-width:0}.event-icon{display:grid;place-items:center;width:29px;height:29px;background:#f4f6f9;border-radius:9px;color:#8794aa;flex-shrink:0}.pending-card{background:#fbfcfe}.pending-card h2{margin-top:12px}.pending-number{font-size:49px;font-weight:600;line-height:1.3;margin:15px 0 9px;color:#3f5c8d;letter-spacing:-2px}.pending-card p{font-size:12px;margin-bottom:23px}.pending-card .primary{width:100%;font-size:12px}.footer{margin-top:30px;font-size:9px;letter-spacing:1px;color:#9ba3af}.tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:17px 0}.search{flex:1;min-width:200px}.avatar{width:42px;height:42px;object-fit:cover;border-radius:12px}.avatar.large{width:76px;height:76px}.command{display:flex;flex-direction:column;gap:7px}.command h3{font-size:14px}.command p{color:var(--muted);font-size:12px;flex:1}.command button{margin-top:6px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;color:#7c8798;font-size:11px;font-weight:550;background:#fafbfc;padding:14px 17px}td{padding:13px 17px;border-top:1px solid var(--line);font-size:12px;max-width:330px;overflow:hidden;text-overflow:ellipsis}tr:hover td{background:#fafcff}input,select,textarea{display:block;width:100%;padding:11px 12px;border:1px solid #dce1e9;border-radius:8px;background:#fff;color:#27354b;font-size:13px;box-shadow:0 1px 2px #24304c03}input::placeholder,textarea::placeholder{color:#9da6b4}textarea{min-height:110px;resize:vertical}input[type=checkbox]{width:18px;height:18px}label{display:block;font-size:12px;font-weight:550;margin:16px 0 7px;color:#677184}form>small{font-size:11px;display:block;margin:5px 0 14px}form>button[type=submit]{margin-top:19px}form.tools>button[type=submit],.hero-search>button[type=submit]{margin-top:0}.empty{padding:40px 20px;text-align:center;color:#8a94a4}.empty h3{font-weight:550;color:#68758b;font-size:14px}.empty p{font-size:12px;max-width:410px;margin:8px auto}.notice{padding:12px 16px;background:#fdf8ef;border:1px solid #ede2ca;border-radius:9px;color:#987944;margin:15px 0;font-size:12px}.meta{font-size:11px}.end-history{text-align:center;color:#929dad;font-size:11px;margin:24px 0}.load-more{display:flex;margin:24px auto}.login{max-width:460px;margin:10vh auto;text-align:center;padding:40px}.login img{width:88px;height:88px;object-fit:contain;margin-bottom:24px}.login h1{font-size:29px;margin:12px 0 15px}.login p{font-size:13px}.login .button{margin-top:16px;background:#3568d4;color:#fff}.login small{display:block;margin-top:23px;font-size:11px}dialog{width:min(680px,94vw);max-height:90vh;overflow:auto;border:1px solid #e2e6ed;border-radius:17px;background:#fff;color:var(--text);padding:28px;box-shadow:0 25px 100px #17253e30}dialog::backdrop{background:#18243758;backdrop-filter:blur(5px)}dialog h2{font-size:20px;margin-bottom:14px}#close-dialog{margin-top:20px}.embed{padding:17px;border:1px solid var(--line);border-radius:10px;background:#fafbfc;margin:14px 0}.embed .thumb{width:55px;height:55px;object-fit:cover;border-radius:10px;float:right;margin:0 0 12px 15px}.embed img{max-width:100%;max-height:360px;object-fit:contain;border-radius:9px}.embed .text{font-size:13px}.field{border-bottom:1px solid var(--line);padding:12px 0}.field strong{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.field span{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}#toast{display:none;position:fixed;bottom:24px;right:24px;max-width:440px;padding:15px 20px;background:#25354f;color:#fff;border-radius:11px;font-size:12px;box-shadow:0 6px 25px #0002;z-index:10}#toast.show{display:block}#toast.error{background:#944554}
.profile-header{display:flex;gap:25px;align-items:center;justify-content:space-between;margin:27px 0 23px}.profile-identity{display:flex;gap:20px;align-items:center;min-width:0}.profile-avatar{height:82px;width:82px;border-radius:22px;object-fit:cover;box-shadow:0 4px 12px #1d304a12;flex-shrink:0}.profile-identity h1{margin:5px 0 7px;font-size:30px;overflow-wrap:anywhere}.profile-id{display:flex;gap:12px;align-items:center;font-size:12px;color:#8790a0;flex-wrap:wrap}.profile-header .tools{margin:0}.profile-header button{font-size:12px}.profile-metrics{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:12px;padding:20px 24px;background:#fff;margin-bottom:27px}.profile-metrics>div{border-right:1px solid var(--line);padding:0 23px}.profile-metrics>div:first-child{padding-left:0}.profile-metrics>div:last-child{border:0}.profile-metrics small{display:block;font-size:11px;margin-bottom:6px}.profile-metrics strong{display:block;font-size:12px;font-weight:550;overflow-wrap:anywhere}.profile-tabs{display:flex;gap:25px;border-bottom:1px solid #dfe4ec;margin-bottom:27px;overflow:auto}.profile-tabs button{border:0;border-radius:0;background:none;padding:12px 1px 16px;color:#8993a3;font-size:13px;white-space:nowrap}.profile-tabs button.selected{color:#2d5faa;box-shadow:inset 0 -2px #3c70c8;font-weight:600}.profile-panel>.card{margin-top:22px}.profile-overview{display:grid;grid-template-columns:1.25fr 1fr;gap:23px;align-items:start}.name-row{display:flex;align-items:center;gap:13px;padding:18px 0;border-bottom:1px solid var(--line)}.name-row:last-child{border:0}.history-symbol{width:34px;height:34px;display:grid;place-items:center;background:#f2f5fa;border-radius:9px;font-size:12px;color:#7890b2;flex-shrink:0}.name-row small{font-size:10px;color:#9aa4b2}.name-change{display:flex;gap:11px;align-items:center;flex-wrap:wrap;margin-top:5px;font-size:14px;overflow-wrap:anywhere}.name-change strong{font-weight:600}.old-name{color:#8691a3}.name-arrow{color:#adb8c8}.name-row time{color:#8e99a9;font-size:10px;white-space:nowrap}.avatar-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-bottom:20px}.avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:21px;align-items:start}.avatar-tile{display:block;text-align:left;position:relative;padding:0;border:0;border-radius:12px;background:transparent;overflow:hidden;box-shadow:none;min-width:0}.avatar-tile:hover{background:none;border:0;box-shadow:none}.avatar-picture{background:#eaedf2;border-radius:12px;overflow:hidden;aspect-ratio:1}.avatar-picture img{display:block;height:100%;width:100%;object-fit:cover;transition:transform .25s}.avatar-tile:hover img{transform:scale(1.045)}.avatar-tile time{display:block;color:#788599;font-size:11px;margin:10px 0 2px}.avatar-preview .avatar-tile time{font-size:9px}.tile-hint{font-size:10px;color:#9ba7b8}.avatar-preview .tile-hint{display:none}.history-list{padding:5px 23px}.event-row{display:flex;gap:15px;padding:22px 0;border-bottom:1px solid var(--line)}.event-row:last-child{border:0}.event-mark{display:grid;place-items:center;width:29px;height:29px;background:#fcf5eb;border-radius:9px;color:#b28d4b;font-weight:600;flex-shrink:0}.event-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.event-heading strong{font-size:13px;font-weight:550}.event-heading time{font-size:10px;color:#8f9cac}.event-row p{font-size:12px;color:#6f7c90;margin:7px 0 5px}.lightbox{width:min(1050px,96vw);background:#fff}.lightbox-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.lightbox-image{display:block;max-height:65vh;max-width:100%;min-height:180px;object-fit:contain;border-radius:10px;margin:20px auto}.lightbox-date{text-align:center;font-size:12px;color:#8795a7}.lightbox-controls{display:flex;align-items:center;justify-content:space-between;gap:10px}.lightbox-controls button,.lightbox-controls .button{font-size:11px}.lightbox #close-dialog{display:block;margin:20px auto 0}
@media(min-width:1600px){.content{padding:45px 55px}.profile-identity h1{font-size:35px}.hero{padding:40px}.hero-wolf{width:140px;height:140px}.avatar-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
@media(max-width:1100px){.layout{grid-template-columns:200px 1fr}.sidebar{padding:25px 10px}.content,.topbar{padding-left:25px;padding-right:25px}.brand{font-size:18px;gap:8px}.brand small{font-size:7px}.brand img{width:33px;height:33px}.user-name{display:none}.hero-wolf{width:85px;height:85px;margin:0 0 0 20px}.stats{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.profile-header{align-items:flex-start;flex-direction:column;gap:18px}.profile-overview{grid-template-columns:1fr}.profile-metrics{padding:17px}.profile-metrics>div{padding:0 12px}.profile-metrics strong{font-size:11px}.profile-tabs{gap:22px}.quick-actions{gap:12px}.action-card{padding:20px}.hero-search button{padding:10px;font-size:10px}}
@media(max-width:700px){.layout{display:block}.sidebar{height:auto;position:static;display:block;padding:17px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0;font-size:20px}.brand img{width:35px;height:35px}.brand small{font-size:8px}.server-card,.nav-label,.sidebar-status{display:none}.sidebar>.nav{flex-direction:row;overflow:auto;scrollbar-width:none;margin-top:16px}.nav button{white-space:nowrap;font-size:11px;padding:8px 11px}.sidebar>nav:nth-of-type(2){display:inline-flex;margin:9px 0 0}.archives{display:inline-block;vertical-align:top;margin:9px 0 0 5px}.archives summary{padding:8px 10px;font-size:11px;border:1px solid var(--line);border-radius:8px;background:#fff}.archives .nav{position:absolute;z-index:5;left:15px;right:15px;max-height:50vh;overflow:auto;margin:5px 0;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 12px 30px #182a4b20}.topbar{height:auto;min-height:63px;padding:12px 18px;gap:12px}.breadcrumb{font-size:10px;gap:8px}.identity .avatar{display:none}.identity{gap:6px}.identity button{font-size:10px;padding:7px}.content{padding:27px 18px}.heading{gap:12px;margin-bottom:23px}h1{font-size:26px}.heading .muted{font-size:11px}.heading .badge{font-size:9px}.hero{padding:24px}.hero h2{font-size:25px}.hero-wolf{position:absolute;right:14px;top:26px;opacity:.12}.hero-copy{z-index:1}.hero-search{gap:8px;padding-left:10px}.hero-search input{font-size:10px}.hero-search button{font-size:9px;padding:9px}.hero-search>span{font-size:21px}.stats{gap:12px}.stat{padding:17px}.quick-actions{grid-template-columns:1fr}.action-card{display:grid;grid-template-columns:37px 1fr;gap:0 15px}.action-icon{grid-row:1/4;margin:0;align-self:center}.action-card p{max-width:none;margin-bottom:10px}.action-arrow{grid-column:2}.section-heading>.muted{display:none}.card{padding:20px}.profile-header{margin-top:22px}.profile-avatar{height:67px;width:67px;border-radius:18px}.profile-identity{gap:15px}.profile-identity h1{font-size:26px}.profile-metrics{grid-template-columns:1fr;gap:14px}.profile-metrics>div{border:0;padding:0;display:flex;align-items:center;justify-content:space-between;gap:15px}.profile-metrics small{margin:0;font-size:10px}.profile-metrics strong{font-size:10px}.profile-tabs{gap:24px}.profile-tabs button{font-size:12px}.profile-panel>.section-heading{display:block}.profile-panel>.section-heading button{font-size:11px;margin-top:15px}.profile-overview{gap:16px}.profile-overview .section-heading{gap:9px}.section-heading h2{font-size:15px}.text-button{font-size:11px}.name-row{gap:10px;flex-wrap:wrap}.name-row time{margin-left:44px}.name-change{font-size:13px;gap:8px}.avatar-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}.avatar-preview{gap:10px}.avatar-preview .avatar-tile time{font-size:8px}.event-heading{align-items:flex-start;flex-direction:column;gap:3px}.lightbox-controls{flex-wrap:wrap;justify-content:center}.lightbox-controls button{flex:1}.lightbox-controls .button{order:3;width:100%}.lightbox-image{max-height:55vh;min-height:100px}dialog{padding:22px}.login{margin:5vh 15px}.lightbox-heading h2{font-size:17px}.footer{font-size:8px}#toast{left:15px;right:15px;bottom:15px;max-width:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.brand img{background:#182033;padding:5px;border-radius:10px}.login img{background:#182033;padding:12px;border-radius:22px}.hero-wolf{background:#182033;padding:14px;border-radius:24px;opacity:1;width:94px;height:94px}@media(max-width:700px){.hero-wolf{opacity:.08}}

/* Le thème sombre garde les mêmes espacements et la même hiérarchie. */
html[data-theme=dark]{color-scheme:dark;--bg:#11161d;--panel:#1a212b;--line:#2b3543;--text:#e8edf5;--muted:#96a3b6;--accent:#83a9ef}
html[data-theme=dark] body{background:var(--bg);color:var(--text)}
html[data-theme=dark] button,html[data-theme=dark] .button{background:#212b38;color:#d1dcec;border-color:#354357}
html[data-theme=dark] button:hover,html[data-theme=dark] .button:hover{background:#2c394b;border-color:#526782}
html[data-theme=dark] .primary{background:#5483d8;color:#fff;border-color:#5483d8}
html[data-theme=dark] .primary:hover{background:#6594e8;border-color:#6594e8}
html[data-theme=dark] .danger{background:#35252f;border-color:#61414d;color:#efa4ad}
html[data-theme=dark] .quiet,html[data-theme=dark] .text-button{background:transparent}
html[data-theme=dark] .text-button{border:0;color:#8eaee4}
html[data-theme=dark] .sidebar{background:#151c25}
html[data-theme=dark] .server-card,html[data-theme=dark] .card,html[data-theme=dark] .hero,html[data-theme=dark] table,html[data-theme=dark] .profile-metrics,html[data-theme=dark] dialog{background:var(--panel);color:var(--text);border-color:var(--line)}
html[data-theme=dark] .topbar{background:#151c25;border-color:var(--line)}
html[data-theme=dark] .server-symbol,html[data-theme=dark] .count{background:#293443;color:#aebed6}
html[data-theme=dark] .server-card small{color:#8eafa2}
html[data-theme=dark] .nav button{background:none;color:#9daac0;border-color:transparent}
html[data-theme=dark] .nav button:hover{background:#202c3b}
html[data-theme=dark] .nav button.active{background:#25354d;color:#9cbdf2}
html[data-theme=dark] .archives summary{color:#9daac0}
html[data-theme=dark] .archives .nav{border-color:var(--line)}
html[data-theme=dark] .eyebrow,html[data-theme=dark] .nav-label{color:#8292a9}
html[data-theme=dark] .sidebar-status{color:#a3b5af}
html[data-theme=dark] .badge{background:#21362f;color:#9bc6ad;border-color:#334e42}
html[data-theme=dark] .badge.warn{background:#3a3225;color:#cfb17c;border-color:#544734}
html[data-theme=dark] .hero-search{background:#151d28;border-color:#36445a}
html[data-theme=dark] .hero-search input{background:none;border:0}
html[data-theme=dark] .stat:hover{background:#222d3b}
html[data-theme=dark] .stat strong,html[data-theme=dark] .pending-number{color:#d6e4fa}
html[data-theme=dark] .stat-label,html[data-theme=dark] .stat-icon{color:#99acc7}
html[data-theme=dark] .action-icon,html[data-theme=dark] .history-symbol,html[data-theme=dark] .event-icon{background:#253347;border-color:#34445b;color:#9fb4d6}
html[data-theme=dark] .amber .action-icon,html[data-theme=dark] .event-mark{background:#3b3225;border-color:#514332;color:#c9ad7e}
html[data-theme=dark] .teal .action-icon{background:#233a36;border-color:#344f48;color:#9ac0b5}
html[data-theme=dark] .action-arrow{color:#93b0e0}
html[data-theme=dark] .pending-card{background:#19222f}
html[data-theme=dark] th{background:#17202c;color:#a7b6ca}
html[data-theme=dark] tr:hover td{background:#202c3c}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#141c27;border-color:#36445a;color:#dde7f5;box-shadow:none}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#6e8099}
html[data-theme=dark] label{color:#aebbd0}
html[data-theme=dark] .notice{background:#302b22;border-color:#4a4132;color:#c5ad83}
html[data-theme=dark] .embed{background:#151e2b;border-color:var(--line)}
html[data-theme=dark] dialog::backdrop{background:#040912b0}
html[data-theme=dark] .profile-tabs{border-color:#334153}
html[data-theme=dark] .profile-tabs button{background:none;border:0;color:#9cabc1}
html[data-theme=dark] .profile-tabs button.selected{color:#a5c3f3;box-shadow:inset 0 -2px #83a9ef}
html[data-theme=dark] .profile-id,html[data-theme=dark] .old-name{color:#a0adc1}
html[data-theme=dark] .name-arrow{color:#667b99}
html[data-theme=dark] .name-row time,html[data-theme=dark] .event-heading time,html[data-theme=dark] .avatar-tile time{color:#98a9c2}
html[data-theme=dark] .event-row p{color:#afbbce}
html[data-theme=dark] .avatar-picture{background:#253140}
html[data-theme=dark] .avatar-tile,html[data-theme=dark] .avatar-tile:hover{background:none;border:0}
html[data-theme=dark] .lightbox{background:#111923}
html[data-theme=dark] .brand img,html[data-theme=dark] .login img{background:#101722}
.login>.theme-toggle{position:fixed;top:22px;right:25px;font-size:12px}
@media(max-width:700px){html[data-theme=dark] .archives summary,html[data-theme=dark] .archives .nav{background:#1a2431;border-color:#344257}.identity .theme-toggle{font-size:0;min-width:32px;padding:6px}.identity .theme-toggle:before{content:'☾';font-size:16px}html[data-theme=dark] .identity .theme-toggle:before{content:'☼'}}
/* Journal du propriétaire et identités cliquables */
.person-chip{border:0!important;background:transparent!important;color:var(--accent,#737bf5);font:inherit;font-weight:650;padding:2px 4px!important;border-radius:5px;cursor:pointer;text-align:left;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px;overflow-wrap:anywhere}
.person-chip:hover{background:#8080a018!important}.event-author{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:8px 0}.audit-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;margin:24px 0}.audit-filters label{margin-top:8px}.audit-filters input,.audit-filters select{width:100%;min-width:0}.audit-filters label,.audit-filters input,.audit-filters select,.audit-matches{grid-column:span 2}.audit-matches{display:flex;flex-wrap:wrap;gap:8px}.audit-timeline{display:grid;gap:16px;margin:22px 0}.audit-entry{padding:24px}.audit-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:18px}.audit-person{display:flex;align-items:center;gap:10px}.audit-person .avatar{width:36px;height:36px}.audit-target{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.audit-entry h3{margin:0}.audit-entry .text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.audit-message{border-top:1px solid #8794a72b;border-bottom:1px solid #8794a72b;padding:14px 0;margin-bottom:14px}.audit-message summary{cursor:pointer;font-weight:600}.audit-entry .section-heading{flex-wrap:wrap;gap:12px}

.audit-field{min-width:0}.audit-field label{display:block;margin:0 0 8px}.audit-field:nth-of-type(3){grid-column:1/-1}.audit-filters .audit-field input,.audit-filters .audit-field select{margin:0}.audit-filters .audit-matches:empty{display:none}@media(max-width:650px){.audit-filters{grid-template-columns:1fr}.audit-field{grid-column:1/-1}.audit-heading{align-items:flex-start;flex-wrap:wrap}.audit-entry{padding:18px}}
.settings-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0}.settings-intro h2{margin:0 0 10px}.settings-summary{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.settings-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;margin:24px 0}.settings-nav{display:flex;flex-direction:column;gap:8px;align-self:start;position:sticky;top:24px}.settings-nav button{text-align:left;white-space:normal}.settings-nav .active{background:var(--accent);color:white}.settings-list{display:grid;gap:16px;min-width:0}.setting-card{padding:24px}.setting-card[hidden]{display:none!important}.setting-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.setting-head h3{margin:0}.setting-card input,.setting-card select,.setting-card textarea{width:100%;box-sizing:border-box}.setting-applied{font-size:13px;color:var(--muted);overflow-wrap:anywhere}.setting-status{font-size:14px;min-height:22px}.setting-card .tools{justify-content:flex-end;margin-bottom:0}.settings-editors{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.settings-editors>*{min-width:0}.settings-editors input,.settings-editors textarea,.settings-editors select{width:100%;box-sizing:border-box}.settings-channels{max-height:260px;overflow:auto;border:1px solid var(--line);padding:12px;border-radius:12px}.settings-channels summary{cursor:pointer}.channel-choice{display:flex;align-items:center;gap:10px;padding:6px}.channel-choice input{width:auto}.setting-test{white-space:pre-wrap;overflow-wrap:anywhere}.insult-list{display:grid;gap:10px}.insult-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px}.insult-row>div:first-child{flex:1;min-width:0}.insult-row strong{overflow-wrap:anywhere}.insult-row small{display:block;margin-top:7px}.insult-row .tools{margin:0;flex-wrap:wrap}.insult-row .badge{white-space:normal}@media(max-width:800px){.settings-layout{grid-template-columns:1fr}.settings-nav{position:static;flex-direction:row;overflow:auto;padding-bottom:10px}.settings-nav button{flex:0 0 180px}.settings-editors{grid-template-columns:1fr}.settings-intro,.insult-row{align-items:flex-start;flex-direction:column}.setting-card{padding:18px}.setting-head .badge{font-size:11px}}
