.lex-home {
    --lex-ink: #11283b;
    --lex-muted: #435968;
    --lex-gold: #e4c28a;
    display: grid;
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
    gap: clamp(2rem,5vw,5.6rem);
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding: clamp(2rem,4vw,4.75rem);
    color: #f7f2e9;
    background: radial-gradient(ellipse at 4% 0%,#244357 0%,#122b3d 41%,#0d202e 90%);
    border: 1px solid #264455;
    border-radius: 1.25rem;
    font-family: inherit;
    line-height: 1.5;
}
.lex-home, .lex-home *, .lex-home *::before, .lex-home *::after {box-sizing:border-box}
.lex-home [hidden] {display:none !important}
.lex-home .lex-home__intro, .lex-home .lex-home__panel {min-width:0}
.lex-home .lex-home__signature {
    display: inline-grid;
    color: #faf6ee;
    font: italic 500 clamp(4.2rem,6.2vw,7rem)/.86 Baskerville,Georgia,serif;
    letter-spacing: -.082em;
    margin: 0 0 clamp(1.3rem,2.7vw,2.4rem);
}
.lex-home__signature span {
    display:block; width:93%; height:.12em; margin-top:.04em;
    border-bottom: .035em solid var(--lex-gold); border-radius:50%; transform-origin:center;
}
.lex-home[data-speaking="true"] .lex-home__signature span {animation:lex-home-voice .75s ease-in-out alternate infinite}
@keyframes lex-home-voice {from {transform:scaleX(.67) rotate(-1deg)} to {transform:scaleX(1.05) rotate(1deg)}}
.lex-home .lex-home__intro h1 {
    color:inherit; margin:0; letter-spacing:-.045em; font-weight:690;
    font-size:clamp(2.35rem,4vw,4.7rem); line-height:1.02;
}
.lex-home .lex-home__intro p {max-width:34ch; color:#d3dfdf; font-size:clamp(1rem,1.2vw,1.18rem); margin:1.25rem 0; line-height:1.65}
.lex-home button, .lex-home input, .lex-home summary {font:inherit}
.lex-home button {cursor:pointer; border:0; border-radius:.45rem; text-transform:none; box-shadow:none; margin:0}
.lex-home button:disabled {opacity:.52; cursor:default}
.lex-home :is(button,input,summary,a,[tabindex]):focus-visible {outline:3px solid #ba8134; outline-offset:3px}
.lex-home button.lex-home__listen {padding:.45rem 0; background:transparent; color:#f3dcad; font-size:.94rem; font-weight:650; display:inline-flex; align-items:center; gap:.5rem}
.lex-home__listen span {font-family:Arial,sans-serif; font-size:1.2rem}
.lex-home .lex-home__panel {
    background:#fcfaf5; color:var(--lex-ink); padding:clamp(1.4rem,2.75vw,3.2rem);
    border-radius:.88rem; box-shadow:0 18px 42px rgba(0,0,0,.14);
}
.lex-home .lex-home__panel h2 {color:var(--lex-ink); margin:0; font-size:clamp(1.85rem,2.5vw,3rem); line-height:1.1; letter-spacing:-.045em}
.lex-home .lex-home__lead {margin:.65rem 0 1.4rem; color:var(--lex-muted); max-width:56ch; font-size:1rem; line-height:1.55}
.lex-home__log {
    max-height:clamp(11rem,33vh,21rem); overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable;
    margin:0 0 1.35rem; padding:.4rem .5rem .4rem 0; border-block:1px solid #d8d9d1;
}
.lex-home .lex-home__turn {padding:.85rem .25rem; overflow-wrap:anywhere}
.lex-home .lex-home__turn + .lex-home__turn {border-top:1px solid #e5e5dc}
.lex-home .lex-home__question {color:var(--lex-muted); font-size:.83rem; margin:0 0 .6rem}
.lex-home .lex-home__turn p.lex-home__answer {font-size:1.02rem; line-height:1.6; color:var(--lex-ink); margin:0}
.lex-home__answer b {font:italic 700 1.12em Baskerville,Georgia,serif; margin-right:.4em}
.lex-home .lex-home__turn a, .lex-home [data-lex-fallback] a {display:inline-block; color:#325669; text-decoration:underline; text-underline-offset:.18em; font-size:.84rem; margin-top:.45rem}
.lex-home .lex-home__form {margin:0}
.lex-home__form label {display:block; font-size:.88rem; font-weight:650; margin-bottom:.42rem; color:var(--lex-ink)}
.lex-home__compose {display:flex; gap:.42rem}
.lex-home .lex-home__compose input {
    flex:1 1 auto; min-width:0; border:1px solid #a5b3b5; border-radius:.45rem; background:white;
    color:var(--lex-ink); padding:.72rem .8rem; font-size:1rem; line-height:1.35; width:100%; min-height:46px;
}
.lex-home .lex-home__compose input::placeholder {color:#52646b}
.lex-home .lex-home__compose button {flex:0 0 auto; background:var(--lex-ink); color:white; font-size:.94rem; font-weight:650; padding:.65rem 1rem; min-height:46px}
.lex-home .lex-home__compose button:not(:disabled):hover {background:#24455b}
.lex-home .lex-home__follow, .lex-home .lex-home__topic-list {display:flex; flex-wrap:wrap; gap:.4rem; margin:.75rem 0 0}
.lex-home .lex-home__follow button, .lex-home .lex-home__topic-list button {
    background:#f2f1e9; color:#254354; padding:.44rem .7rem; border:1px solid #ced3c8;
    font-size:.84rem; line-height:1.36; text-align:left; min-height:34px;
}
.lex-home .lex-home__follow button:hover, .lex-home .lex-home__topic-list button:hover {background:#e7eae1}
.lex-home .lex-home__topics {margin:.7rem 0 0}
.lex-home__topics summary {width:fit-content; cursor:pointer; font-size:.85rem; font-weight:650; color:#3b5964; padding:.3rem 0}
.lex-home .lex-home__controls {margin:1rem 0 .65rem; border-top:1px solid #d9dbd1; padding-top:.6rem; display:flex; flex-wrap:wrap; align-items:center; gap:.25rem .85rem}
.lex-home .lex-home__controls button {background:transparent; color:#284b57; font-size:.85rem; text-decoration:underline; text-underline-offset:.22em; font-weight:650; padding:.25rem 0; min-height:32px}
.lex-home .lex-home__controls label {display:inline-flex; align-items:center; gap:.4rem; font-size:.85rem; color:#3c5260; margin:0; cursor:pointer; min-height:32px}
.lex-home .lex-home__controls input {appearance:auto; width:1rem; height:1rem; padding:0; margin:0; accent-color:var(--lex-ink)}
.lex-home .lex-home__status {font-size:.82rem; line-height:1.45; margin:.4rem 0; color:#385363}
.lex-home .lex-home__status:empty {display:none}
.lex-home .lex-home__device {font-size:.8rem; line-height:1.4; color:#54636b; margin:.4rem 0}
.lex-home .lex-home__turn small {display:block; color:#54636b; font-size:.78rem; margin-top:.4rem}
.lex-home .lex-home__note {margin:.65rem 0 0; font-size:.81rem; line-height:1.5; color:#54636b}
@media(max-width:850px) {
    .lex-home {grid-template-columns:minmax(0,1fr); gap:1.25rem; padding:clamp(1rem,4vw,2rem)}
    .lex-home .lex-home__intro {display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:1.2rem; align-items:center}
    .lex-home .lex-home__signature {grid-column:1; grid-row:1 / 3; margin:0; font-size:3.8rem}
    .lex-home .lex-home__intro h1 {grid-column:2; font-size:clamp(1.55rem,4vw,2.25rem); line-height:1.12}
    .lex-home .lex-home__intro h1 br {display:none}
    .lex-home .lex-home__intro p {display:none}
    .lex-home button.lex-home__listen {grid-column:2; justify-self:start; font-size:.8rem; padding:.15rem 0}
    .lex-home .lex-home__panel {padding:clamp(1rem,3.5vw,2rem)}
}
@media(max-width:480px) {
    .lex-home {border-radius:.85rem; padding:.9rem; gap:.95rem}
    .lex-home .lex-home__signature {font-size:3rem}
    .lex-home .lex-home__intro {column-gap:.9rem}
    .lex-home .lex-home__compose {flex-wrap:wrap}
    .lex-home .lex-home__compose input {flex-basis:100%}
    .lex-home .lex-home__compose button {width:100%}
}
@media(prefers-reduced-motion:reduce) {.lex-home[data-speaking="true"] .lex-home__signature span {animation:none}}
