body.portal { line-height: 1.65; }
.ws-shell { max-width: 860px; margin: 0 auto; padding: 24px 16px 56px; }
.ws-breadcrumb { font-size: 13px; color: var(--muted); }
.ws-ctas, .ws-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ws-tool { margin: 24px 0 32px; padding: 20px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ws-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 64px)); justify-content: center; gap: 8px; margin: 18px 0; }
.ws-tile { min-height: 72px; padding: 5px 0; border: 2px solid transparent; border-radius: 8px; background: var(--surface-soft); color: var(--text); cursor: pointer; touch-action: manipulation; }
.ws-tile strong { display: block; font-size: 26px; }
.ws-tile small { display: block; font-size: 11px; }
.ws-tile[data-filled="true"][data-state="green"] { background: #3f7a2e; color: #fff; }
.ws-tile[data-filled="true"][data-state="yellow"] { background: #d6ad2b; color: #2b2410; }
.ws-tile[data-filled="true"][data-state="gray"] { background: #63676e; color: #fff; }
.ws-tile[aria-current="true"] { outline: 3px solid var(--accent); outline-offset: 3px; }
.ws-keyboard { display: grid; gap: 6px; margin: 20px 0; }
.ws-key-row { display: flex; justify-content: center; gap: 4px; }
.ws-key { flex: 0 1 44px; min-width: 0; min-height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); color: var(--text); font-size: 16px; font-weight: 750; cursor: pointer; touch-action: manipulation; }
.ws-shell button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ws-shell button:disabled { opacity: .5; cursor: default; }
.ws-hint, .ws-note { color: var(--muted); font-size: 14px; }
.ws-history { padding-left: 24px; }
.ws-history li { margin: 10px 0; }
.ws-history span { display: inline-block; margin-right: 12px; font-weight: 700; overflow-wrap: anywhere; }
.ws-history button { margin: 3px; }
.ws-results { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.ws-best { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; }
.ws-best li { border: 1px solid #b8d1b0; border-radius: 12px; padding: 14px; background: #edf4e9; }
.ws-best strong { display: block; font-size: 24px; letter-spacing: .06em; }
.ws-best p { font-size: 13px; margin: 6px 0 0; }
.ws-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 6px; list-style: none; padding: 0; }
.ws-words li { background: var(--surface-soft); border-radius: 6px; padding: 6px; text-align: center; font-weight: 700; }
.ws-article h2 { margin-top: 30px; }
.ws-article details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ws-article summary { font-weight: 750; cursor: pointer; }
.ws-article details p { margin-bottom: 0; }
.ws-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
[hidden] { display: none !important; }
@media (max-width: 540px) { .ws-best { grid-template-columns: 1fr; } .ws-best strong { font-size: 22px; } }
@media (min-width: 640px) { .ws-shell { padding: 36px 24px 64px; } .ws-tool { padding: 24px; } }
