/* Project AlliX v4.1 | design consistency overlay. Responsive, no data flow changes. */
:root{--ax41-bg:#0b141c;--ax41-surface:#12252e;--ax41-surface2:#0e1d26;--ax41-edge:#2b4750;--ax41-text:#eaf5f5;--ax41-muted:#a9c2c8;--ax41-teal:#3fd3c8;--ax41-teal-dark:#072124;--ax41-gold:#d6b27a;--ax41-danger:#f8b9bf;--ax41-radius:16px}
*{box-sizing:border-box}html{scroll-padding-top:24px}body{min-height:100vh;background:var(--ax41-bg);color:#dbe9eb}img{max-width:100%}
:where(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #74eee5!important;outline-offset:3px}
.ax41-page{padding:18px 0 75px;background:radial-gradient(ellipse 750px 300px at 95% 2%,rgba(41,184,181,.09),transparent 70%),var(--ax41-bg);min-height:68vh}
.ax41-container{width:min(1220px,calc(100% - 36px));margin:0 auto}
.ax41-crumb{display:flex;gap:10px;align-items:center;color:#95adb4;font-size:.84rem;margin:0 0 24px}
.ax41-crumb a,.ax41-text-link{color:#a4e9e1;text-decoration:underline;text-underline-offset:3px}
.ax41-kicker{color:#e0b982!important;font-size:.72rem!important;font-weight:800!important;letter-spacing:.15em!important;text-transform:uppercase;line-height:1.5}
.ax41-hero{padding:clamp(26px,4vw,47px);border:1px solid #31535c;border-radius:20px;background:linear-gradient(115deg,#173139,#0d1d26);margin-bottom:18px}
.ax41-hero h1{font-size:clamp(2rem,4vw,3.3rem);line-height:1.12;letter-spacing:-.045em;color:#f3fbfb;margin:10px 0 15px}
.ax41-hero h1 span,.ax41-browse-hero h1 span{color:var(--ax41-teal)}
.ax41-hero p:not(.ax41-kicker){line-height:1.7;color:#bbd0d4;max-width:700px;margin:0}
.ax41-create-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(285px,.75fr);gap:22px;align-items:start}
.ax41-main-column,.ax41-side-column{min-width:0}
.ax41-panel{background:linear-gradient(140deg,#142a33,#10212a);border:1px solid var(--ax41-edge);border-radius:18px;padding:clamp(22px,3vw,30px);margin-bottom:18px;color:#e9f2f3}
.ax41-panel-heading{display:flex;align-items:flex-start;gap:16px;margin-bottom:23px}
.ax41-panel-heading h2,.ax41-aside-card h2{margin:0 0 5px;color:#f1faf9;font-size:1.2rem;line-height:1.35}
.ax41-panel-heading p,.ax41-aside-card p{color:#afc6cc;margin:0;line-height:1.6;font-size:.88rem}
.ax41-step{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;background:#193f45;border:1px solid #328c8b;border-radius:12px;color:#a2f1e6;font-weight:800;font-size:.9rem}
.ax41-project-form{display:block}
.ax41-field{display:grid;gap:8px;margin:0 0 21px;min-width:0}
.ax41-field:last-child{margin-bottom:0}
.ax41-field label{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px;color:#ecf7f6;font-size:.89rem;font-weight:720}
.ax41-required,.ax41-muted{font-weight:550;font-size:.72rem;color:#96b5bd}
.ax41-field input:not([type=checkbox]),.ax41-field select,.ax41-field textarea,.ax41-auth input:not([type=checkbox]),.ax41-auth select,.ax41-auth textarea{
 width:100%;min-width:0;background:#091a22!important;border:1px solid #476573!important;border-radius:11px!important;color:#f6fafa!important;padding:13px 14px!important;font:inherit;line-height:1.45;box-shadow:none}
.ax41-field input::placeholder,.ax41-field textarea::placeholder,.ax41-auth input::placeholder{color:#91aeb7}
.ax41-field textarea{resize:vertical;min-height:100px}
.ax41-field select{color-scheme:dark;cursor:pointer}
.ax41-field small{font-size:.74rem;color:#aec6cc;line-height:1.65}
.ax41-field input[type=file]{cursor:pointer}
.ax41-field input[type=file]::file-selector-button{background:#284e55;border:0;border-radius:7px;padding:9px 12px;margin-right:12px;color:#f1faf9;cursor:pointer}
.ax41-inline-note{font-size:.78rem;color:#b3cacf;padding:14px;border-radius:10px;background:rgba(55,156,153,.08);border-left:3px solid #3ac4be}
.ax41-image-preview{display:flex;align-items:center;gap:12px;padding:12px;border:1px dashed #466771;border-radius:12px;overflow:hidden}
.ax41-image-preview[hidden]{display:none}.ax41-image-preview img{width:100px;height:73px;object-fit:cover;border-radius:8px}.ax41-image-preview span{color:#bed2d5;overflow-wrap:anywhere;font-size:.8rem}
.ax41-create-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0 20px}
.ax41-create-actions p{width:100%;margin:0;color:#a7bfc5;font-size:.75rem}
.ax41-primary,.ax41-secondary{display:inline-flex;align-items:center;gap:8px;justify-content:center;text-decoration:none!important;cursor:pointer;font:inherit;font-size:.85rem!important;font-weight:800!important;line-height:1.3;border-radius:10px;padding:12px 18px;min-height:44px}
.ax41-primary{background:var(--ax41-teal);color:var(--ax41-teal-dark)!important;border:1px solid var(--ax41-teal)}
.ax41-primary:hover,.ax41-primary:focus{background:#7ae9df;color:#061e21!important}
.ax41-secondary{background:#1b323b;color:#d9f1ef!important;border:1px solid #49717a}
.ax41-secondary:hover{background:#264851;color:#fff!important}
.ax41-primary:disabled{opacity:.68;cursor:wait}
.ax41-aside-card{position:sticky;top:20px;margin-bottom:18px}
.ax41-aside-card:not(:first-child){position:static}
.ax41-aside-card h2{margin-bottom:14px}.ax41-aside-card ol{margin:0;padding:0 0 0 22px;display:grid;gap:16px;color:#70ddd3}
.ax41-aside-card li{padding-left:4px}.ax41-aside-card li strong{display:block;color:#eff8f6}.ax41-aside-card li span{display:block;color:#adc5cc;font-size:.8rem;line-height:1.5;margin-top:3px}
.ax41-aside-card a{color:#a2f0e6;text-decoration:underline}
.ax41-alert{padding:14px 17px;border-radius:12px;border:1px solid #447078;background:#1b3a40;color:#e9f8f6;margin-bottom:15px;line-height:1.6}
.ax41-alert ul{margin:7px 0 0 20px}.ax41-alert-error{border-color:#ba686d;background:#361d29;color:#ffe3e4}.ax41-alert-success{border-color:#369e8c;background:#123b34;color:#d4f9ed}
/* Explore: search and pagination, without changing request authorization. */
.ax41-browse .axp-wrap{width:min(1220px,calc(100% - 36px));max-width:1220px}
.ax41-browse-hero{flex-wrap:wrap}.ax41-browse-hero h1 span{color:var(--ax41-teal)}.ax41-hero-buttons{display:flex;gap:10px;flex-wrap:wrap}
.ax41-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,300px) auto auto;gap:13px;align-items:end;padding:18px 22px;background:#11252e;border:1px solid var(--ax41-edge);border-radius:15px;margin:0 0 18px}
.ax41-filter .ax41-field{margin:0}.ax41-filter .ax41-text-link{padding:10px}
.ax41-tabs{margin:0 0 15px}.ax41-results{color:#a7c1c8;font-size:.8rem;margin:13px 0}
.ax41-project-grid .ax41-project-card{display:block;min-height:200px;overflow:hidden}
.ax41-project-grid .axlist-card-body{height:100%;min-width:0}
.ax41-project-card h2{overflow-wrap:anywhere}.ax41-project-card .ax41-primary,.ax41-project-card .ax41-secondary{margin-top:14px}
.ax41-project-card form{width:100%}.ax41-project-card .axpro-inline-intro{margin-top:12px}
.ax41-project-card p:not(.ax41-kicker){overflow-wrap:anywhere}
.ax41-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:24px;color:#a7c3c9}
.ax41-empty{text-align:center}
/* Legacy public pages and account pages share modern field / document presentation. */
.ax41-auth{padding:35px 20px 65px;min-height:70vh;display:grid;place-items:start center}
.ax41-auth>.auth-form,.ax41-auth>.ax41-auth-card{width:min(100%,520px)!important;max-width:520px!important;padding:clamp(25px,4vw,39px)!important;margin:22px auto!important;background:linear-gradient(140deg,#142a33,#0f2029)!important;border:1px solid #34525b!important;border-radius:18px!important;box-shadow:0 16px 55px rgba(0,0,0,.16)}
.ax41-auth h1{font-size:clamp(1.65rem,3vw,2.35rem);color:#eff9f9;line-height:1.18}
.ax41-auth form{display:grid;gap:11px}
.ax41-auth label{color:#d9eff0;font-weight:680;font-size:.85rem}
.ax41-auth p,.ax41-auth small{color:#b2c8cf}
.ax41-auth a{color:#88e8df;text-decoration:underline;text-underline-offset:3px}
.ax41-auth label:has(input[type=checkbox]){display:flex;align-items:start;gap:9px;line-height:1.55}
.ax41-auth input[type=checkbox]{margin-top:.2rem}
.ax41-auth .cta-button{border:0;background:#3ed2c8;color:#081f22;padding:12px;font-weight:800;min-height:44px}
.ax41-auth .error-message{border:1px solid #b96671;background:#371d2a;color:#ffe1e2;padding:13px;border-radius:10px}
.ax41-legacy{width:min(1020px,calc(100% - 36px));margin:22px auto 70px;padding:clamp(25px,4vw,45px)!important;max-width:1020px!important;min-height:0!important;background:linear-gradient(135deg,#122831,#0e1e28);border:1px solid #2b4750;border-radius:18px;color:#d8e6e9;text-align:left;align-items:stretch!important}
.ax41-legacy h1{font-size:clamp(1.8rem,3vw,2.8rem);color:#f3f9fa;line-height:1.15;margin:0 0 17px}
.ax41-legacy h2{color:#e9f5f5;font-size:1.25rem;margin:28px 0 12px}.ax41-legacy p,.ax41-legacy li{color:#b7ccd1;line-height:1.7}
.ax41-legacy .form{display:grid;gap:11px;max-width:740px;width:100%;margin-top:22px;padding:20px;border:1px solid #31505a;border-radius:12px;background:#0e222b}
.ax41-legacy .form label{font-weight:750;color:#e6f3f4}
.ax41-legacy .form input:not([type=checkbox]),.ax41-legacy .form textarea{width:100%;border:1px solid #486873;border-radius:10px;background:#091a21;color:#f2f9f9;padding:12px;font:inherit}
.ax41-legacy .form .cta-button{justify-self:start;min-height:44px;padding:11px 17px;border:0;background:#3fd3c8;color:#062326;font-weight:800}
.ax41-legacy .card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:17px;max-width:none;width:100%}
.ax41-legacy .project-card,.ax41-legacy .project-item{background:#152e36;border:1px solid #31505b;border-radius:12px;overflow:hidden;padding:16px;color:#d5e8ea}
.ax41-legacy .project-card img{width:100%;aspect-ratio:16/9;object-fit:cover}
.ax41-legacy .card-title{color:#eef9f9;font-size:1.1rem}.ax41-legacy .card-excerpt{color:#b6cbd1}
.ax41-legacy .blog-body{line-height:1.8;overflow-wrap:anywhere;white-space:normal}
.ax41-legacy .blog-post{width:100%;max-width:800px;margin:auto}
.ax41-legacy .blog-post .excerpt{font-size:1.07rem;color:#c6d8db}
.ax41-legacy .project-items{width:100%}
.ax41-legacy a{color:#8becdf}
.ax41-legacy .locked-content{padding:14px 20px;border:1px solid #375f67;background:#122f36;border-radius:10px}
/* Shared basic page typography on legacy pages that already use .section-container */
.ax41-legal{max-width:850px!important}.ax41-legal h2{padding-top:4px}.ax41-legal ul{padding-left:24px}
/* Mobile, reduced motion, accessible targets */
@media(max-width:1030px){.ax41-create-grid{grid-template-columns:1fr}.ax41-aside-card{position:static}.ax41-side-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.ax41-filter{grid-template-columns:1fr 1fr}.ax41-filter button{justify-self:start}}
@media(max-width:700px){.ax41-container,.ax41-browse .axp-wrap{width:calc(100% - 24px)}.ax41-hero{padding:25px 21px}.ax41-panel{padding:21px 18px}.ax41-side-column{grid-template-columns:1fr}.ax41-filter{grid-template-columns:1fr;padding:17px}.ax41-hero-buttons{width:100%}.ax41-filter button,.ax41-hero-buttons .ax41-primary,.ax41-hero-buttons .ax41-secondary{width:100%}.ax41-create-actions .ax41-primary{width:100%}.ax41-legacy{width:calc(100% - 24px);padding:22px 18px!important}}
@media(prefers-reduced-motion:reduce){.ax41-primary,.ax41-secondary{transition:none}}
