:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #182235; background: #f4f5f7; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 1.75rem, 59rem); margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) 0; }
header, nav, .actions, #samples { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
header { justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; }
h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.45rem); letter-spacing: -.04em; }
h2 { margin: 0 0 .45rem; font-size: 1.1rem; }
.workspace { color: #344675; font-size: .74rem; font-weight: 750; letter-spacing: .11em; margin: 0 0 .2rem; }
section, article { background: #fff; border: 1px solid #d9dfe9; border-radius: .85rem; padding: clamp(.9rem, 2vw, 1.4rem); }
[hidden] { display: none !important; }
#messages, #skills { display: grid; gap: .8rem; }
#messages { max-height: min(52vh, 31rem); overflow: auto; }
#messages article[data-actor="user"] { background: #edf1fa; margin-left: min(10%, 3rem); }
article p { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
article details { margin-top: .6rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; }
form { margin-top: .8rem; }
label { display: block; font-weight: 650; margin: .6rem 0 .25rem; }
textarea, input { width: 100%; border: 1px solid #8a98b0; border-radius: .5rem; padding: .55rem; font: inherit; }
textarea { resize: vertical; }
button, .primary { font: inherit; padding: .45rem .75rem; border: 1px solid #aab7ce; border-radius: .5rem; color: #20365e; background: #fff; cursor: pointer; }
.primary { display: inline-block; background: #233b78; border-color: #233b78; color: #fff; text-decoration: none; }
button:disabled { opacity: .62; cursor: default; }
#samples, .actions { margin-top: .55rem; }
a { color: #233b78; }
:focus-visible { outline: 2px solid #3a64d8; outline-offset: 3px; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: .55rem 0; font-size: .9rem; }
td,th { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid #d9dfe9; }
