.ww-companion {
    display: grid;
    grid-template-columns: minmax(180px, .72fr) minmax(0, 1.65fr);
    align-items: center;
    gap: clamp(24px, 4vw, 60px);
    margin: 30px 0;
    padding: clamp(24px, 3.5vw, 44px);
    background: var(--ww-surface, #fffdf7);
    color: var(--ww-ink, #173b32);
    border: 1px solid var(--ww-line, #d8dcd1);
    border-radius: 16px;
}
.ww-companion[hidden] { display: none; }
.ww-companion__portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.ww-companion__portrait img {
    width: 100%;
    max-width: 320px;
    height: 260px;
    object-fit: contain;
    object-position: center bottom;
}
.ww-companion--level-1 .ww-companion__portrait img { padding: 24px 20px 0; }
.ww-companion--level-2 .ww-companion__portrait img { padding: 14px 12px 0; }
.ww-companion--level-3 .ww-companion__portrait img { padding: 20px 18px 0; }
.ww-companion--level-4 .ww-companion__portrait img { padding: 10px 8px 0; }
.ww-companion__level {
    margin-top: 12px;
    padding: 7px 14px;
    border: 1px solid var(--ww-line, #d8dcd1);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.ww-companion__story { min-width: 0; }
.ww-companion__story h2 {
    margin: 0 0 12px;
    color: inherit;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.025em;
}
.ww-companion__intro {
    max-width: 57ch;
    margin: 0 0 22px;
    color: var(--ww-muted, #56685c);
    font-size: 16px;
    line-height: 1.65;
}
.ww-companion__status {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 14px;
}
.ww-companion__status strong { font-size: 18px; }
.ww-companion__status > span { color: var(--ww-muted, #56685c); }
.ww-companion__progress {
    display: block;
    width: 100%;
    height: 8px;
    margin: 14px 0 10px;
    overflow: hidden;
    appearance: none;
    accent-color: var(--ww-forest, #173b32);
    border: 0;
    border-radius: 999px;
    background: var(--ww-line, #d8dcd1);
}
.ww-companion__progress::-webkit-progress-bar {
    background: var(--ww-line, #d8dcd1);
    border-radius: 999px;
}
.ww-companion__progress::-webkit-progress-value {
    background: var(--ww-forest, #173b32);
    border-radius: 999px;
}
.ww-companion__progress::-moz-progress-bar {
    background: var(--ww-forest, #173b32);
    border-radius: 999px;
}
.ww-companion__next,
.ww-companion__notice {
    margin: 10px 0 16px;
    color: var(--ww-muted, #56685c);
    font-size: 14px;
    line-height: 1.6;
}
.ww-companion__action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    min-height: 44px;
    margin-bottom: 16px;
    padding: 11px 20px;
    background: var(--ww-forest, #173b32);
    color: #fffdf7;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.ww-companion__action:focus-visible {
    outline: 2px solid var(--ww-ink, #173b32);
    outline-offset: 4px;
}
.ww-companion__stages {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 24px 0 18px;
    padding: 0;
    list-style: none;
}
.ww-companion__stages li {
    min-width: 0;
    padding: 12px 8px 0 0;
    border-top: 1px solid var(--ww-line, #d8dcd1);
    color: var(--ww-muted, #56685c);
    font-size: 12px;
    line-height: 1.4;
}
.ww-companion__stages li.is-reached { border-top-color: var(--ww-forest, #173b32); }
.ww-companion__stage-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 9px;
    border: 1px solid var(--ww-line, #d8dcd1);
    border-radius: 50%;
    font-weight: 600;
}
.ww-companion__stages .is-reached .ww-companion__stage-number {
    background: var(--ww-forest, #173b32);
    color: #fffdf7;
    border-color: var(--ww-forest, #173b32);
}
.ww-companion__stages [aria-current='step'] .ww-companion__stage-name {
    color: var(--ww-ink, #173b32);
    font-weight: 600;
}
.ww-companion__stage-name { display: block; }
.ww-companion__stages small { display: block; margin-top: 4px; font-size: 11px; }
.ww-companion__note {
    max-width: 65ch;
    margin: 0;
    color: var(--ww-muted, #56685c);
    font-size: 12px;
    line-height: 1.6;
}
@media (max-width: 760px) {
    .ww-companion { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .ww-companion__portrait img { max-width: 240px; height: 210px; }
    .ww-companion__level { margin-top: 8px; }
}
@media (max-width: 400px) {
    .ww-companion { padding: 20px 16px; }
    .ww-companion__stages { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .ww-companion__stages li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0 0; }
    .ww-companion__stage-number { margin: 0; }
    .ww-companion__stages small { margin: 0; }
}
