[x-cloak] { display: none !important; }
html { color-scheme: light; }
::selection { background: rgba(197, 248, 120, .6); color: #151a16; }
body { font-feature-settings: "cv11", "ss01"; }
h1, h2, h3 { letter-spacing: -.03em; }
.grain::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid-lines {
    background-image: linear-gradient(rgb(var(--c-white) / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--c-white) / .045) 1px, transparent 1px);
    background-size: 56px 56px;
}
.card { background: rgb(var(--c-surface)); border: 1px solid #dee2d7; border-radius: 16px; box-shadow: 0 4px 20px -2px rgba(21, 26, 22, .05), 0 2px 6px -1px rgba(21, 26, 22, .03); }
.scheme-dark .card { background: rgb(var(--c-surface) / .7); border-color: rgb(var(--c-white) / .08); box-shadow: none; }
.label-mono { font-size: .68rem; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; color: rgb(var(--c-slate-500)); }
.input {
    width: 100%; background: rgb(var(--c-surface)); border: 1px solid #d9dece; border-radius: 7px; padding: .7rem .9rem;
    color: rgb(var(--c-white)); font-size: .9rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.scheme-dark .input { background: rgb(var(--c-canvas)); border-color: rgb(var(--c-white) / .1); }
.input:focus { outline: none; border-color: #648f31; box-shadow: 0 0 0 3px rgba(100, 143, 49, .18); }
.input:disabled { background: rgb(var(--c-elevated)); color: rgb(var(--c-slate-500)); cursor: not-allowed; }
.input::placeholder { color: rgb(var(--c-slate-500)); }
.input.input-validation-error { border-color: #dc2626; }
.field-validation-error, .validation-summary-errors { color: #b91c1c; font-size: .8rem; }
.validation-summary-valid { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 7px; padding: .65rem 1.25rem; font-weight: 600; font-size: .875rem; transition: background-color .18s ease, transform .18s ease, border-color .18s ease, color .18s ease, filter .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #648f31; outline-offset: 3px; }
.btn-primary { background: var(--ws-accent, #c5f878); color: var(--ws-accent-ink, #151a16); border: 1px solid var(--ws-accent, #c5f878); }
.btn-primary:hover { filter: brightness(1.06) saturate(1.05); }
.btn-ghost { border: 1px solid rgb(var(--c-white) / .16); color: rgb(var(--c-white)); background: transparent; }
.btn-ghost:hover { border-color: rgb(var(--c-white) / .35); background: #e7eddf; }
.scheme-dark .btn-ghost:hover { background: rgb(var(--c-white) / .05); }
.btn[disabled], .btn.htmx-request { opacity: .6; pointer-events: none; }
.rise { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.scan { position: relative; overflow: hidden; }
.scan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(197, 248, 120, .35), transparent); animation: scan 1.8s linear infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid #dee2d7; background: rgb(var(--c-surface)); border-radius: 9999px; padding: .3rem .75rem; font-size: .8rem; color: rgb(var(--c-slate-300)); transition: border-color .15s ease, background-color .15s ease; }
.chip:hover { border-color: rgb(var(--c-white) / .3); }
.agent-text p { margin-bottom: .6rem; } .agent-text ul { list-style: disc; padding-left: 1.1rem; margin-bottom: .6rem; } .agent-text strong { color: rgb(var(--c-white)); }
main, aside, header { position: relative; z-index: 1; }
.brand-word { font-weight: 750; letter-spacing: -.06em; }
.brand-word > span { color: #75a53c; margin-left: -.1em; }
.text-brand { color: #537c2b !important; }
.scheme-dark .text-brand { color: #c5f878 !important; }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: #537c2b; }
