:root{--black:#12120f;--ink:#24231f;--muted:#77736a;--ivory:#f6f3ec;--paper:#fffdf8;--line:#e5dfd3;--gold:#c79727;--gold-light:#f3d773;--bronze:#8b6129;--shadow:0 16px 36px rgba(40,31,17,.08)}
*{box-sizing:border-box}html{min-height:100%;background:var(--ivory)}body{min-height:100vh;margin:0;color:var(--ink);background:radial-gradient(circle at 85% -20%,#eadcae 0,transparent 27rem),var(--ivory);font:400 16px/1.5 "DM Sans",system-ui,sans-serif}.site-header{height:88px;padding:0 clamp(22px,5vw,72px);display:flex;align-items:center;justify-content:space-between;background:var(--black);box-shadow:0 3px 15px #0002}.brand{display:flex;align-items:center;gap:12px;height:54px;text-decoration:none}.brand-mark{display:grid;width:42px;height:42px;place-items:center;overflow:hidden;border-radius:11px;background:#fff;box-shadow:inset 0 0 0 1px #ffffff77}.brand-mark img{width:100%;height:100%;object-fit:cover}.brand-wordmark{width:190px;height:35px;object-fit:contain;object-position:left center}.user-nav{display:flex;align-items:center;gap:22px;color:#f9f5e9;font-size:.88rem}.user-name{display:flex;align-items:center;gap:8px;color:#e5ded2}.user-dot{width:7px;height:7px;border-radius:50%;background:var(--gold-light);box-shadow:0 0 10px var(--gold)}.user-nav a,.nav-action{color:#fffaf0;text-decoration:none;font:inherit;transition:color .2s}.user-nav a:hover,.nav-action:hover{color:var(--gold-light)}.user-nav form{margin:0}.nav-action{padding:8px 12px;border:1px solid #ffffff33;border-radius:7px;background:transparent;cursor:pointer}.site-main{width:min(1180px,100%);min-height:calc(100vh - 146px);margin:0 auto;padding:clamp(42px,7vw,82px) clamp(22px,5vw,56px)}.site-footer{display:flex;gap:12px;align-items:center;width:min(1180px,100%);margin:0 auto;padding:20px clamp(22px,5vw,56px) 32px;color:#878075;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase}.footer-rule{width:30px;height:1px;background:#b8aa91}.eyebrow,.panel-kicker{margin:0;color:var(--bronze);font-size:.7rem;font-weight:700;letter-spacing:.16em}.eyebrow span{display:inline-block;width:22px;height:1px;margin:0 9px 4px 0;background:var(--gold)}h1,h2{font-family:"Playfair Display",Georgia,serif}h1{margin:10px 0 16px;font-size:clamp(2.6rem,6vw,4.8rem);font-weight:600;letter-spacing:-.045em;line-height:1.04}h1 em{color:var(--bronze);font-weight:600}.intro{max-width:460px;margin:0;color:var(--muted);font-size:1.06rem}.welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;padding-bottom:52px;border-bottom:1px solid var(--line)}.availability{display:flex;gap:13px;align-items:center;padding:13px 0 13px 22px;border-left:1px solid #cbbd9f}.availability strong{color:var(--bronze);font:600 3.4rem/.8 "Playfair Display",Georgia,serif}.availability span{color:var(--muted);font-size:.76rem;font-weight:600;letter-spacing:.08em;line-height:1.4;text-transform:uppercase}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin:42px 0 18px}.section-heading h2{margin:0;font-size:1.52rem;font-weight:600;letter-spacing:-.02em}.section-heading p{margin:0;color:var(--muted);font-size:.9rem}.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.service-card{position:relative;display:flex;min-height:142px;align-items:center;gap:17px;padding:21px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,#fffefa,#fbf7ed);box-shadow:0 4px 9px #5e4a1c06;color:var(--ink);text-decoration:none;transition:border-color .2s,box-shadow .25s,transform .25s}.service-card::before{position:absolute;top:0;left:21px;width:0;height:2px;background:linear-gradient(90deg,var(--gold),var(--gold-light));content:"";transition:width .25s}.service-card:hover{border-color:#d1b56c;box-shadow:var(--shadow);transform:translateY(-3px)}.service-card:hover::before{width:calc(100% - 42px)}.service-icon{display:grid;flex:0 0 46px;width:46px;height:46px;place-items:center;border:1px solid #ebd998;border-radius:14px;background:linear-gradient(145deg,#fff9da,#f0d478);box-shadow:inset 0 1px #fff;font-size:1.48rem}.service-content{min-width:0}.service-content strong{display:block;font-size:1rem;font-weight:700;letter-spacing:-.02em}.service-content small{display:block;overflow:hidden;margin-top:3px;color:var(--muted);font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.open-service{margin-left:auto;color:var(--bronze);font-size:1.25rem;transition:transform .2s}.service-card:hover .open-service{transform:translate(3px,-3px)}.empty{padding:64px 30px;margin-top:42px;border:1px dashed #cdbf9e;border-radius:16px;text-align:center}.empty h2{margin:13px 0 5px}.empty p{margin:0;color:var(--muted)}.empty-mark{display:grid;width:44px;height:44px;margin:auto;place-items:center;border-radius:12px;background:linear-gradient(135deg,#edd36a,#9d6b20);color:#fff;font-weight:700}.flash{max-width:700px;padding:13px 16px;margin:0 auto 22px;border-radius:9px;font-size:.9rem}.flash.error{border:1px solid #efc3b8;background:#fff1ed;color:#83301f}.flash.success{border:1px solid #bfdfc2;background:#ecf8ed;color:#285d32}

.login-page{background:radial-gradient(circle at 15% 25%,#372c18 0,transparent 31rem),var(--black);color:#f9f6ed}.login-page .site-header{border-bottom:1px solid #ffffff15;box-shadow:none}.login-page .site-main{display:grid;min-height:calc(100vh - 146px);align-items:center}.login-page .site-footer{color:#a69c8e}.login-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(54px,11vw,150px);align-items:center}.login-intro h1{max-width:610px;margin-top:15px;color:#f8f4ea}.login-intro h1 em{color:var(--gold-light)}.login-intro>p:not(.eyebrow){max-width:390px;margin:0;color:#bdb5a8;font-size:1.05rem}.login-detail{display:flex;gap:10px;align-items:center;margin-top:44px;color:#dad2c5;font-size:.85rem}.login-detail span{color:var(--gold-light);font-size:.65rem}.login-panel{padding:34px;border:1px solid #ffffff12;border-radius:18px;background:linear-gradient(145deg,#27251e,#1b1a16);box-shadow:0 26px 60px #0005}.login-panel h2{margin:5px 0;font-size:2rem;font-weight:600}.login-panel>p:not(.panel-kicker){margin:0 0 27px;color:#bdb5a8;font-size:.9rem}.login-panel label{display:block;margin:16px 0 0;color:#e8e1d5;font-size:.8rem;font-weight:600;letter-spacing:.03em}.login-panel input{display:block;width:100%;padding:12px 0 10px;margin-top:4px;border:0;border-bottom:1px solid #ffffff30;background:transparent;color:#fff;font:400 1rem "DM Sans",sans-serif;outline:0;transition:border-color .2s}.login-panel input:focus{border-color:var(--gold-light)}.login-panel button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:13px 16px;margin-top:30px;border:0;border-radius:8px;background:linear-gradient(105deg,#d6a92f,#f1d574);color:#281d09;font:700 .88rem "DM Sans",sans-serif;cursor:pointer;transition:filter .2s,transform .2s}.login-panel button:hover{filter:brightness(1.08);transform:translateY(-1px)}.login-panel button span{font-size:1.35rem;line-height:.7}

.card,.user{border:1px solid var(--line);border-radius:14px;background:var(--paper);box-shadow:0 5px 14px #4b37100a}.card{padding:25px;margin-top:24px}.card h2{margin-top:0}form{display:grid;gap:14px}label{font-size:.86rem;font-weight:650}input{display:block;width:100%;padding:10px;margin-top:5px;border:1px solid #cfc7b8;border-radius:7px;background:#fff;font:inherit}.check{display:flex;gap:8px;align-items:center;font-weight:500}.check input{width:auto;margin:0}fieldset{display:grid;gap:6px;padding:12px;border:1px solid var(--line);border-radius:8px}legend{font-weight:650}button{justify-self:start;padding:10px 16px;border:0;border-radius:7px;background:var(--bronze);color:white;font:700 .9rem "DM Sans",sans-serif;cursor:pointer}.notice{padding:12px;border-radius:8px;background:#fff3cf}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.row{display:grid;grid-template-columns:1fr 80px auto auto;align-items:end;padding:14px 0;border-top:1px solid var(--line)}.row:first-of-type{border-top:0}.row label{font-size:.75rem}.row input{padding:7px}.user{padding:15px 20px;margin:12px 0}.user summary{font-weight:700;cursor:pointer}.user form{max-width:520px;margin-top:18px}.user em{padding:2px 6px;border-radius:8px;background:#eee6d7;font:normal .75rem "DM Sans",sans-serif}
.brand-mark img{object-fit:contain}
.site-header{height:96px;background:#f8f5ef;border-bottom:1px solid #ded6c8;box-shadow:0 2px 10px rgba(62,46,20,.05)}.brand{height:66px;gap:16px}.brand-mark{width:54px;height:54px;border-radius:13px;box-shadow:0 2px 8px #6b532022}.brand-wordmark{width:286px;height:54px}.user-nav{color:#5f594f}.user-name{color:#5f594f}.user-nav a,.nav-action{color:#39352e}.nav-action{border-color:#c9c0b1}.login-page .site-header{background:#f8f5ef;border-bottom:1px solid #ded6c8}.welcome h1{font-size:clamp(2.25rem,4.1vw,3.55rem);line-height:1.08}.service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.service-card{min-height:126px;padding:22px 24px}.service-content strong{font-size:1.08rem}.service-content small{font-size:.86rem;white-space:normal}.open-service{display:inline-flex;gap:7px;align-items:center;padding:7px 10px;border:1px solid #d2bd80;border-radius:7px;background:#fffdf4;color:#70501f;font-size:.78rem;font-weight:700;letter-spacing:.02em;transition:background .2s,border-color .2s,transform .2s}.open-service b{font-size:1rem}.service-card:hover .open-service{border-color:#aa7923;background:#f8e8ac;transform:translateX(2px)}
@media(max-width:850px){.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.login-layout{grid-template-columns:1fr;gap:45px}.login-intro{max-width:600px}.login-panel{max-width:520px}.login-page .site-main{padding-top:56px;padding-bottom:56px}}
@media(max-width:600px){.site-header{height:72px;padding:0 19px}.brand{gap:8px}.brand-mark{width:34px;height:34px;border-radius:9px}.brand-wordmark{width:154px;height:29px}.user-nav{gap:10px}.user-name{display:none}.user-nav a{display:none}.nav-action{padding:6px 9px;font-size:.76rem}.site-main{min-height:calc(100vh - 126px);padding:42px 20px}.site-footer{padding:18px 20px 25px}.welcome{display:block;padding-bottom:31px}.availability{width:max-content;margin-top:30px}.section-heading{display:block;margin:30px 0 15px}.section-heading p{margin-top:3px}.service-grid{grid-template-columns:1fr;gap:11px}.service-card{min-height:94px;padding:16px}.service-card::before{left:16px}.service-card:hover::before{width:calc(100% - 32px)}.login-layout{gap:38px}.login-intro h1{font-size:clamp(2.55rem,13vw,3.7rem)}.login-detail{margin-top:31px}.login-panel{padding:26px 21px}.login-page .site-main{padding-top:45px;padding-bottom:42px}.admin-grid{grid-template-columns:1fr}.row{grid-template-columns:1fr 64px auto;gap:8px}.row button{grid-column:1/-1}}
@media(max-width:600px){.site-header{height:82px}.brand{gap:10px}.brand-mark{width:42px;height:42px}.brand-wordmark{width:205px;height:42px}.site-main{min-height:calc(100vh - 136px)}.welcome h1{font-size:clamp(2.1rem,10vw,2.75rem)}.service-card{min-height:104px;padding:17px}.service-content small{font-size:.8rem}.open-service{padding:6px 8px;font-size:.72rem}}
.home-page{background:radial-gradient(circle at 88% -12%,#3d3424 0,transparent 29rem),radial-gradient(circle at 8% 58%,#2a2419 0,transparent 31rem),#171611;color:#f5f0e5}.home-page .site-main{color:#f5f0e5}.home-page .site-footer{color:#a79f91}.home-page .eyebrow{color:#e7c969}.home-page .intro{color:#c1b8aa}.home-page .welcome{border-bottom-color:#5b5346}.home-page .availability{border-left-color:#77684a}.home-page .availability span{color:#c1b8aa}.home-page .section-heading h2{color:#f5f0e5}.home-page .section-heading p{color:#b7aea0}.home-page .empty{border-color:#766644;background:#211f19}.home-page .empty p{color:#beb5a8}
.home-page .service-card{border-color:#4b463b;background:linear-gradient(145deg,#302d26,#26241f);box-shadow:0 10px 24px rgba(0,0,0,.18);color:#eee7db}.home-page .service-card:hover{border-color:#9a7b35;background:linear-gradient(145deg,#373127,#2a2721);box-shadow:0 14px 28px rgba(0,0,0,.28)}.home-page .service-icon{border-color:#756136;background:linear-gradient(145deg,#4d4126,#392f1f);box-shadow:inset 0 1px #ffffff18;color:#f0cf68}.home-page .service-content small{color:#b8afa1}.home-page .open-service{border-color:#776238;background:#332d21;color:#e6c66d}.home-page .open-service:hover,.home-page .service-card:hover .open-service{border-color:#b18c3d;background:#493b24;color:#f5d982}.home-page .service-card::before{background:linear-gradient(90deg,#a77d27,#e2bf59)}
.cerebro-page .site-main{max-width:980px}.cerebro-heading{padding-bottom:28px;border-bottom:1px solid #5b5346}.cerebro-heading h1{margin-bottom:10px;font-size:clamp(2.3rem,5vw,3.6rem)}.cerebro-heading .intro{max-width:680px}.cerebro-panel{margin-top:25px;overflow:hidden;border:1px solid #4b463b;border-radius:16px;background:linear-gradient(145deg,#24221d,#1e1c18);box-shadow:0 16px 38px #0003}.cerebro-history{display:grid;max-height:58vh;min-height:280px;gap:15px;overflow-y:auto;padding:22px}.cerebro-message{max-width:min(88%,760px);padding:15px 18px;border:1px solid #484237;border-radius:13px;background:#302d26;color:#eee7db}.cerebro-message-user{justify-self:end;border-color:#78633b;background:#393224}.cerebro-message-assistant{justify-self:start}.cerebro-message-error{justify-self:start;border-color:#785148;background:#352622;color:#f0cbc0}.cerebro-message-label{margin:0 0 7px;color:#e6c66d;font-size:.73rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.cerebro-message-body{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.65}.cerebro-status{margin:0;padding:0 22px 17px;color:#e1c671;font-size:.9rem}.cerebro-form{padding:17px 20px 18px;border-top:1px solid #494337;background:#211f1a}.cerebro-form textarea{width:100%;resize:vertical;padding:13px 14px;border:1px solid #585144;border-radius:10px;background:#302d26;color:#f3eddf;font:inherit;outline:0}.cerebro-form textarea:focus{border-color:#b08a3d;box-shadow:0 0 0 3px #b08a3d20}.cerebro-form textarea::placeholder{color:#aaa08f}.cerebro-form-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:10px;color:#a99f8e;font-size:.75rem}.cerebro-form-footer button{background:linear-gradient(110deg,#b68a2c,#d4b458);color:#211a0d}.cerebro-form-footer button:disabled{opacity:.55;cursor:wait}.cerebro-sources{margin-top:14px;padding-top:10px;border-top:1px solid #514a3d}.cerebro-sources summary{color:#e6c66d;font-size:.82rem;font-weight:650;cursor:pointer}.cerebro-sources ul{display:grid;gap:8px;padding-left:20px;margin-bottom:2px}.cerebro-sources a{color:#f0d27c;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}.cerebro-sources small{display:inline-block;margin-top:3px;color:#b9ae9d}.cerebro-no-results{margin:0;padding:12px 20px 17px;color:#d2c09a;font-size:.86rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cerebro-sources[open] summary{margin-bottom:12px}.cerebro-detail-group+ .cerebro-detail-group{margin-top:13px;padding-top:12px;border-top:1px solid #494337}.cerebro-detail-group h4{margin:0 0 7px;color:#d8c9ad;font-size:.78rem;letter-spacing:.04em}.cerebro-detail-group ul{display:grid;gap:8px;padding-left:20px;margin:0}.cerebro-detail-group li{line-height:1.48;overflow-wrap:anywhere}
@media(max-width:600px){.cerebro-history{min-height:220px;max-height:54vh;padding:14px}.cerebro-message{max-width:96%;padding:12px 13px}.cerebro-form{padding:13px}.cerebro-form-footer{align-items:flex-end}.cerebro-form-footer span{max-width:65%;line-height:1.35}.cerebro-detail-group ul{padding-left:17px}}

/* Cerebro LB uses the viewport as its workspace: only the conversation scrolls. */
html:has(body.cerebro-page){height:100%;overflow:hidden}
body.cerebro-page{display:flex;height:100vh;height:100dvh;min-height:0;flex-direction:column;overflow:hidden}
.cerebro-page .site-header{flex:0 0 auto}
.cerebro-page .site-main{display:flex;width:100%;max-width:none;min-height:0;flex:1 1 auto;flex-direction:column;overflow:hidden;padding:clamp(14px,2.5vh,28px) clamp(16px,4vw,56px) 16px}
.cerebro-page .site-footer{display:none}
.cerebro-page .cerebro-heading{flex:0 0 auto;padding-bottom:14px}
.cerebro-page .cerebro-heading h1{margin:5px 0 7px;font-size:clamp(1.8rem,3.2vw,2.65rem)}
.cerebro-page .cerebro-heading .intro{font-size:.92rem}
.cerebro-page .cerebro-panel{display:flex;min-height:0;flex:1 1 auto;flex-direction:column;margin-top:14px}
.cerebro-page .cerebro-history{min-height:0;max-height:none;flex:1 1 auto;align-content:start;overscroll-behavior:contain;scrollbar-gutter:stable}
.cerebro-page .cerebro-status{flex:0 0 auto}
.cerebro-page .cerebro-form{flex:0 0 auto}
.cerebro-page .cerebro-form textarea{max-height:22dvh;resize:vertical}
@media(max-width:600px){
  .cerebro-page .site-header{height:72px;padding:0 16px}
  .cerebro-page .site-main{padding:12px 12px 12px}
  .cerebro-page .cerebro-heading{padding-bottom:11px}
  .cerebro-page .cerebro-heading h1{font-size:1.8rem}
  .cerebro-page .cerebro-heading .intro{font-size:.84rem;line-height:1.4}
  .cerebro-page .cerebro-panel{margin-top:10px;border-radius:12px}
  .cerebro-page .cerebro-history{min-height:0;max-height:none;padding:12px}
  .cerebro-page .cerebro-form textarea{max-height:18dvh}
}
.cerebro-source-title{margin:0;color:#eee7db;font-weight:650}
.cerebro-source-open{display:inline-block;margin-top:3px;color:#f0d27c;text-decoration-thickness:1px;text-underline-offset:3px}
.cerebro-source-metadata{margin:4px 0 0;color:#b9ae9d;font-size:.76rem;line-height:1.45}
.cerebro-source-excerpt{margin:7px 0 0;color:#d0c6b5;font-size:.85rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.cerebro-technical-meta{margin:8px 0 0;color:#a99f8e;font-size:.72rem;line-height:1.4;letter-spacing:.01em}
.cerebro-model-picker{display:grid;grid-template-columns:auto minmax(180px,320px);gap:12px;align-items:center;color:#d8c9ad}
.cerebro-model-picker label{color:#d8c9ad;font-size:.82rem}
.cerebro-model-picker select{width:100%;padding:9px 12px;border:1px solid #585144;border-radius:8px;background:#302d26;color:#f3eddf;font:inherit}
.cerebro-model-picker select:focus{border-color:#b08a3d;outline:2px solid #b08a3d40;outline-offset:1px}
.cerebro-model-picker select:disabled{opacity:.65}
.cerebro-model-status{margin:0;color:#e5b4a3;font-size:.78rem}
.cerebro-source-citation{margin:.35rem 0;color:#b9ae9b;font-size:.78rem;overflow-wrap:anywhere}
.cerebro-source-title{margin-bottom:.25rem}
.cerebro-source-synthesis{margin:.2rem 0 .65rem;color:#e8dfcf;line-height:1.5}
.cerebro-source-claims{margin:.2rem 0 .65rem;padding-left:1.2rem;color:#e8dfcf}
.cerebro-source-claims li{margin:.35rem 0;line-height:1.45}
.cerebro-source-reference{color:#d6ae52}
.cerebro-source-dependency{margin:.45rem 0 0;padding:.55rem .7rem;border-left:2px solid #7e6a43;color:#b9ae9b;font-size:.82rem;line-height:1.45}
.cerebro-detail-group h5{margin:.5rem 0 .15rem;color:#d6ae52;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}
@media(max-width:600px){.cerebro-model-picker{grid-template-columns:1fr;gap:5px}.cerebro-model-picker select{padding:8px 10px}}

/* Clear action stays visually secondary and separated from submit. */
.cerebro-form-footer{gap:18px;margin-top:12px}
.cerebro-form-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.cerebro-form-footer button{min-height:38px;padding:9px 16px;transition:filter .2s,transform .2s,background .2s}
.cerebro-form-footer button:not(:disabled):hover{filter:brightness(1.08);transform:translateY(-1px)}
.cerebro-form-footer button:focus-visible{outline:2px solid #f0d27c;outline-offset:3px}
.cerebro-form-footer .cerebro-clear{border:1px solid #665d4e;background:#2b2923;color:#d2c6b2;font-weight:600}
.cerebro-form-footer .cerebro-clear:not(:disabled):hover{background:#39352c}
@media(max-width:600px){
  .cerebro-form-footer{align-items:stretch;flex-direction:column;gap:10px}
  .cerebro-form-footer > span:first-child{line-height:1.35}
  .cerebro-form-actions{width:100%;gap:9px}
  .cerebro-form-actions button{flex:1}
}

/* Accessible navigation and restrained improvements to existing components. */
.skip-link{position:fixed;z-index:100;top:8px;left:8px;padding:10px 14px;border-radius:7px;background:#fffaf0;color:#24231f;transform:translateY(-160%)}
.skip-link:focus{transform:translateY(0)}
:where(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #c79727;outline-offset:3px}
.site-main:focus{outline:none}
.home-page .service-card:focus-visible{outline:3px solid #f3d773;outline-offset:3px}
.service-content small{line-height:1.45;overflow-wrap:anywhere}
.cerebro-empty{align-self:center;justify-self:center;max-width:34rem;padding:24px;text-align:center;color:#c7bdad}
.cerebro-empty strong{color:#eee7db;font-size:1.05rem}
.cerebro-empty p{margin:7px 0 0;line-height:1.5}
.cerebro-empty p:last-child{color:#a99f8e;font-size:.85rem}
.cerebro-empty[hidden],.cerebro-clear-confirm[hidden],.cerebro-retry-models[hidden]{display:none}
.cerebro-retry-models,.cerebro-retry-query{padding:8px 12px;border:1px solid #806c48;background:#302b22;color:#f0d27c;font-size:.8rem}
.cerebro-retry-query{margin-top:12px}
.cerebro-clear-confirm:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px;border:1px solid #665d4e;border-radius:8px;background:#302d26;color:#eee7db;font-size:.86rem}
.cerebro-clear-confirm span{flex:1 1 200px}
.cerebro-clear-confirm button{min-height:38px;padding:8px 12px;border:1px solid #806c48;background:#3b3529;color:#f3eddf;font-size:.8rem}
.cerebro-clear-confirm #cerebro-confirm-clear{background:#d4b458;color:#211a0d}
.cerebro-detail-group > ul > li{padding:12px;border:1px solid #514a3d;border-radius:9px;background:#292720;list-style-position:inside}
body:has(.admin-grid) .admin-grid{align-items:start;gap:24px}
body:has(.admin-grid) .card{margin-top:0}
body:has(.admin-grid) .card h2{margin-bottom:18px}
body:has(.admin-grid) .user[open]{border-color:#b59a62}
body:has(.admin-grid) fieldset{padding:16px;gap:10px}
@media(max-width:600px){
  .site-header .brand-wordmark{width:clamp(66px,24vw,135px)}
  .site-header .user-nav{gap:8px}
  .site-header .user-nav a{display:inline-block;font-size:.72rem}
  .site-header .nav-action{font-size:.72rem;white-space:nowrap}
  .cerebro-form-footer .cerebro-form-actions{max-width:none}
  .cerebro-page .cerebro-heading{padding-bottom:6px}
  .cerebro-page .cerebro-heading h1{margin:3px 0;font-size:1.55rem}
  .cerebro-page .cerebro-heading .intro{font-size:.8rem}
  .cerebro-page .cerebro-panel{margin-top:7px}
  .cerebro-page .cerebro-form{gap:8px}
}
@media(max-height:500px){
  html:has(body.cerebro-page),body.cerebro-page{height:auto;min-height:100%;overflow:auto}
  .cerebro-page .site-main{overflow:visible}
  .cerebro-page .cerebro-history{min-height:160px;max-height:45vh}
}
@media(prefers-reduced-motion:reduce){.service-card,.open-service,.cerebro-form-footer button{transition:none}.service-card:hover,.cerebro-form-footer button:not(:disabled):hover{transform:none}}
