:root{color-scheme:light;--paper:#fafaf7;--surface:#fff;--ink:#10243b;--muted:#536173;--line:#dde3eb;--blue:#2445ff;--teal:#007f78;--pink:#c3006b;--blue-pale:#edf0ff;--teal-pale:#e5f3ef;--pink-pale:#fce8f2;font-family:Arial,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-size:16px;line-height:1.6}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}a{color:var(--blue);text-underline-offset:4px}button,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}a:focus-visible,button:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid var(--blue);outline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,4.3vw,3rem);line-height:1.15;letter-spacing:-.035em;margin-bottom:20px}h2{font-size:1.45rem;line-height:1.3;letter-spacing:-.02em}h3{font-size:1.1rem;line-height:1.4}p{margin-bottom:16px}.muted{color:var(--muted)}.skip-link{position:absolute;left:16px;top:-80px;padding:10px 16px;background:var(--ink);color:#fff;z-index:10}.skip-link:focus{top:8px}.site-header{background:var(--surface);border-bottom:1px solid var(--line)}.header-inner{max-width:1240px;margin:auto;padding:20px 36px;display:flex;align-items:center;gap:28px;flex-wrap:wrap}.brand{display:flex;gap:14px;align-items:center;color:var(--ink);text-decoration:none}.logo{width:130px;height:44px;object-fit:contain;background:#fff;border-radius:6px;padding:3px}.brand-copy{border-left:1px solid var(--line);padding-left:14px;font-size:.75rem;line-height:1.4;color:var(--muted)}.site-nav{margin-left:auto;display:flex;flex-wrap:wrap;gap:4px}.site-nav a{font-size:.875rem;text-decoration:none;color:var(--muted);padding:9px 12px;border-radius:8px}.site-nav a[aria-current="page"]{color:var(--blue);background:var(--blue-pale)}.site-main{max-width:1240px;margin:auto;padding:38px 36px 48px;min-height:calc(100vh - 175px)}.kicker{text-transform:uppercase;font-size:.7rem;letter-spacing:.12em;font-weight:700;color:var(--muted);margin-bottom:14px}.hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:48px;padding:22px 0 44px}.hero h1{max-width:600px}.subtitle{font-size:1.05rem;color:var(--muted);max-width:540px;line-height:1.7;margin-bottom:24px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:10px;padding:12px 18px;font-size:.9rem;font-weight:700;text-decoration:none}.primary{color:#fff;background:var(--blue)}.primary:hover{background:#1835db}.secondary{color:var(--ink);background:var(--surface);border:1px solid var(--line);font-weight:400}.hero-sample{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:26px;box-shadow:0 12px 36px #10243b0a}.sample-title{display:flex;align-items:center;gap:8px;font-size:.8rem;color:var(--muted);margin-bottom:20px}.sample-title::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--teal)}.mini-text{font-size:1.3rem;line-height:2.1}.mini-entity{padding:4px 6px;border-radius:5px;background:var(--blue-pale);color:var(--blue)}.mini-entity.location{background:var(--teal-pale);color:var(--teal)}.sample-caption{border-top:1px solid var(--line);padding-top:15px;font-size:.75rem;color:var(--muted);margin-bottom:0}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:10px 0 18px}.section-heading h2{font-size:1.3rem;margin:0}.section-heading p{font-size:.8rem;color:var(--muted);margin:0}.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tool-card{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:24px;display:flex;flex-direction:column;align-items:flex-start}.tool-card.highlight{border-color:var(--blue);background:var(--blue-pale)}.tool-icon{color:var(--blue);margin-bottom:18px;width:24px;height:24px;stroke:currentColor;stroke-width:1.7;fill:none}.tool-card p{font-size:.875rem;color:var(--muted);line-height:1.7;margin-bottom:20px}.text-link{font-weight:700;font-size:.85rem}.tool-card .text-link{margin-top:auto}.site-footer{border-top:1px solid var(--line);background:var(--surface)}.footer-inner{max-width:1240px;margin:auto;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px 36px;font-size:.75rem;color:var(--muted)}.footer-inner .signature{color:var(--pink)}.back-link{display:inline-block;font-size:.8rem;color:var(--muted);margin-bottom:24px;text-decoration:none}.page-head{margin-bottom:28px}.page-head h1{font-size:2.1rem;margin-bottom:10px}.page-head p{color:var(--muted);font-size:.95rem;max-width:820px}.tool-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr);gap:30px;align-items:start}.input-label{display:block;font-weight:700;font-size:.9rem;margin-bottom:12px}textarea{display:block;width:100%;min-height:240px;resize:vertical;padding:17px;border:1px solid var(--line);border-radius:11px;color:var(--ink);background:var(--surface);font-size:1rem;line-height:1.7}textarea:read-only{background:var(--paper)}.input-foot{font-size:.75rem;color:var(--muted);margin:10px 0 17px}.input-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-size:.75rem}.example-button{padding:5px 0;border:0;background:transparent;color:var(--blue);font-size:.8rem;text-decoration:underline;text-underline-offset:4px}.small-note,.tool-status{font-size:.8rem;color:var(--muted);line-height:1.65;margin-top:18px}.tool-status{min-height:26px}.working::before{content:"";display:inline-block;width:12px;height:12px;border:2px solid var(--line);border-top-color:var(--blue);border-radius:50%;margin-right:9px;vertical-align:-2px;animation:spin 1s linear infinite}.tool-error{font-size:.9rem;padding:13px 15px;border:1px solid var(--pink);background:var(--pink-pale);color:var(--ink);border-radius:8px;margin-top:16px}.empty-result{border:1px dashed var(--line);border-radius:12px;padding:36px 24px;background:var(--surface);color:var(--muted)}.empty-result h2{font-size:1.15rem;color:var(--ink)}.results-container:has(>section:not([hidden]))>.empty-result{display:none}.panel{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:24px}.legend{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:.8rem;margin-bottom:16px}.legend span{display:inline-flex;gap:6px;align-items:center}.legend span::before{content:"";width:8px;height:8px;border-radius:3px;background:var(--blue)}.legend .location::before{background:var(--teal)}.legend .organisation::before{background:var(--pink)}.annotated{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.15rem;line-height:2.7;margin-bottom:0}.entity{display:inline;padding:5px 6px;line-height:inherit;font-size:inherit;text-align:left;border:0;border-radius:5px;color:var(--blue);background:var(--blue-pale);box-decoration-break:clone;-webkit-box-decoration-break:clone}.entity.location,.token-label.location{color:var(--teal);background:var(--teal-pale)}.entity.organisation,.token-label.organisation{color:var(--pink);background:var(--pink-pale)}.entity[aria-pressed="true"]{box-shadow:inset 0 -2px currentColor}.entity small{font-size:.65rem;font-weight:700;margin-left:5px;white-space:nowrap}.result-caption{font-size:.75rem;color:var(--muted);border-top:1px solid var(--line);padding-top:13px;margin:16px 0 0}.entity-detail{margin-top:18px;min-height:170px}.entity-detail h3{font-size:1.3rem;margin-bottom:9px}.entity-detail p{font-size:.85rem;margin-top:12px}.kind{font-size:.75rem;color:var(--muted);padding:3px 6px;border:1px solid var(--line);border-radius:5px}.technical-details{font-size:.8rem;color:var(--muted);border-top:1px solid var(--line);padding-top:17px;margin-top:24px}.technical-details summary{cursor:pointer;font-weight:700;color:var(--ink)}.technical-details p{margin-top:12px;overflow-wrap:anywhere}.word-section{grid-column:1/-1;border-top:1px solid var(--line);padding-top:28px;margin-top:4px;min-width:0}.word-section h2{font-size:1.3rem;margin-bottom:8px}.word-section>p{font-size:.85rem;color:var(--muted)}.sentence-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.sentence{padding:13px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);text-align:left;line-height:1.6;color:var(--ink);font-size:.85rem;overflow-wrap:anywhere}.sentence span{display:block;color:var(--muted);font-size:.75rem;margin-bottom:4px}.sentence[aria-pressed="true"],.secondary[aria-pressed="true"]{border-color:var(--blue);background:var(--blue-pale)}.table-wrap{overflow:auto}.word-table{width:100%;min-width:48rem;border-collapse:collapse;font-size:.85rem}.word-table td:nth-last-child(-n+2){white-space:nowrap;font-variant-numeric:tabular-nums}.word-table th,.word-table td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;vertical-align:top}.word-table th{font-size:.75rem;color:var(--muted);font-weight:400}.word-table th:first-child{width:10%}.word-table td:nth-child(4){font-size:.8rem;color:var(--muted)}.word-table .text-link,.word-table .muted{display:block;font-size:.75rem}.token-label{display:inline-block;font-size:.7rem;padding:3px 6px;border-radius:4px;background:var(--blue-pale);color:var(--blue);margin:0 3px 3px 0}.token-caption{font-size:.75rem;color:var(--muted);margin-top:16px}.emotion-panel h2{font-size:1.3rem;margin-bottom:7px}.emotion-intro,.emotion-foot{font-size:.8rem;color:var(--muted)}.emotion-chips{display:flex;gap:7px;flex-wrap:wrap;margin:20px 0}.emotion-chips p{margin:0}.emotion-chip{font-size:.8rem;font-weight:700;border-radius:7px;padding:5px 10px;background:var(--teal-pale);color:var(--teal)}.emotion-chip::before{content:"✓ ";font-weight:400}.score-axis{display:flex;justify-content:space-between;font-size:.7rem;color:var(--muted);margin-bottom:18px}.emotion-row{margin-bottom:20px}.emotion-label{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:baseline;margin-bottom:8px;font-size:.85rem}.emotion-cutoff{font-size:.7rem;color:var(--muted)}.emotion-score{font-size:.9rem;font-variant-numeric:tabular-nums;min-width:48px;text-align:right}.emotion-track{position:relative;height:9px;background:var(--blue-pale);border-radius:3px}.emotion-fill{display:block;height:100%;background:var(--blue);opacity:.4;border-radius:3px}.emotion-fill.above{background:var(--teal);opacity:1}.emotion-marker{position:absolute;top:-3px;height:15px;width:2px;background:var(--ink);transform:translateX(-1px)}.emotion-legend{display:flex;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:16px;color:var(--muted);font-size:.7rem}.emotion-legend span{display:inline-flex;gap:6px;align-items:center}.emotion-legend i{display:inline-block;width:9px;height:9px;background:var(--teal);border-radius:2px}.emotion-legend .below-key{background:var(--blue);opacity:.4}.emotion-legend .marker-key{width:2px;height:12px;border-radius:0;background:var(--ink)}.truncation-note{font-size:.85rem;border-left:3px solid var(--pink);padding-left:12px;margin-top:18px}.guide{max-width:880px}.guide section{margin:28px 0}.guide p,.guide li{font-size:.95rem}.guide details{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:18px 22px;margin:16px 0}.guide summary{cursor:pointer;font-weight:700}.guide details p:first-of-type{margin-top:16px}.guide pre{padding:16px;border-radius:8px;background:var(--blue-pale);overflow-x:auto;font-size:.8rem;line-height:1.7}.guide code{font-family:Consolas,monospace;overflow-wrap:anywhere}.guide table{border-collapse:collapse;width:100%;font-size:.85rem}.guide td,.guide th{border-bottom:1px solid var(--line);padding:10px;text-align:left;vertical-align:top}.guide ol{padding-left:24px}.guide li{margin-bottom:8px}.noscript{display:block;padding:16px;background:var(--pink-pale);border:1px solid var(--pink);border-radius:8px;margin-bottom:20px}@keyframes spin{to{transform:rotate(360deg)}}
.entity.person,.token-label.person{color:var(--blue);background:var(--blue-pale)}.entity.role,.token-label.role{color:#5943a5;background:#eeeafa}.entity.demonym,.token-label.demonym{color:#89540f;background:#faf0dd}.entity.work,.token-label.work{color:#7840a2;background:#f4eafa}.entity.event,.token-label.event{color:#a84615;background:#fff0e6}.entity.product,.token-label.product{color:#2c6b3c;background:#e7f3e9}.entity.ideology,.token-label.ideology{color:#4d5b73;background:#edf0f5}.legend .person::before{background:var(--blue)}.legend .role::before{background:#5943a5}.legend .demonym::before{background:#89540f}.legend .work::before{background:#7840a2}.legend .event::before{background:#a84615}.legend .product::before{background:#2c6b3c}.legend .ideology::before{background:#4d5b73}.entity-legend{gap:8px 14px;font-size:.75rem}
body[data-page="analysis"] .results-container:has(>section:not([hidden])),body[data-page="analysis"] #results:not([hidden]){display:contents}.analysis-output{grid-column:2;min-width:0}
@media(max-width:820px){.header-inner{gap:18px;padding:18px 22px}.brand-copy{display:none}.site-main{padding:28px 22px 40px}.hero{grid-template-columns:1fr;gap:24px}.hero-sample{max-width:650px}.tool-layout{grid-template-columns:1fr}.tool-grid{grid-template-columns:1fr 1fr}.site-nav{margin-left:0}.footer-inner{padding:18px 22px}.word-section{margin-top:0}.analysis-output{grid-column:auto}.tool-layout>form{max-width:720px}textarea{min-height:180px}}
@media(max-width:540px){.header-inner{gap:14px}.site-nav{width:100%;gap:0}.site-nav a{padding:9px 10px;font-size:.8rem}.site-main{padding:24px 18px 34px}.hero{padding-top:8px}.hero h1{font-size:2.1rem}.tool-grid,.sentence-list{grid-template-columns:1fr}.tool-card{padding:22px}.page-head h1{font-size:1.8rem}.panel{padding:20px}.emotion-label{gap:8px}.emotion-cutoff{font-size:.65rem}.guide details{padding:16px}.brand-copy{display:none}}
.entity-reference{display:inline-block;vertical-align:baseline;white-space:nowrap;font-size:.7rem;font-weight:700;line-height:1.6;padding:2px 5px;margin-left:4px;border-radius:4px;background:var(--teal-pale);color:var(--teal);text-decoration:underline;text-underline-offset:2px}.entity-reference:hover{background:#cde9e1}.word-table .entity-reference{margin:0 3px 3px 0}
#emotion-example-picker{margin-bottom:16px}#emotion-example{font:inherit;width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}#emotion-example:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.working::before{animation:none}}
@media(pointer:coarse){button,.site-nav a{min-height:44px}.entity{padding-top:8px;padding-bottom:8px}}

.semantic-section { min-width: 0; overflow-wrap: anywhere; }
.semantic-section h2 { margin-bottom: .5rem; }
.semantic-section h3 { margin: 1.3rem 0 .6rem; font-size: 1.13rem; }
.semantic-section h4 { margin: 0; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.18rem; }
.semantic-modes { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.semantic-modes button { padding: .45rem .85rem; font: inherit; font-weight: 600; border: 1px solid var(--line); border-radius: .4rem; color: var(--ink); background: var(--surface); cursor: pointer; }
.semantic-modes button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.semantic-document { padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: .55rem; }
.semantic-document h3 { margin: 0 0 .65rem; }
.semantic-note, .semantic-lemma { font-size: .9rem; color: var(--muted); }
.semantic-document p { margin: .4rem 0 0; }
.semantic-score { display: grid; grid-template-columns: minmax(2rem,1fr) minmax(7.5rem,auto); gap: .75rem; align-items: center; }
.semantic-score strong { font-size: .95rem; text-align: end; font-variant-numeric: tabular-nums; }
.semantic-document .semantic-score { row-gap: .15rem; }
.semantic-axis { grid-column: 1; display: grid; grid-template-columns: repeat(3,1fr); color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.semantic-axis span:nth-child(2) { text-align: center; }
.semantic-axis span:last-child { text-align: end; }
.semantic-scale { position: relative; display: inline-block; height: .65rem; background: var(--blue-pale); border-radius: .18rem; }
.semantic-scale::after { content: ''; position: absolute; inset: -.16rem auto -.16rem 50%; border-left: 1px solid var(--muted); }
.semantic-scale span { position: absolute; top: 0; height: 100%; }
.semantic-scale .negative { right: 50%; background: var(--pink); }
.semantic-scale .positive { left: 50%; background: var(--teal); }
.semantic-components { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin: .65rem 0; font-size: .87rem; }
.semantic-components > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.semantic-components dt, .semantic-facts dt { color: var(--muted); }
.semantic-components dd, .semantic-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.semantic-components dd { font-weight: 650; }
.semantic-sentence { border-block-start: 1px solid var(--line); padding: .75rem 0; }
.semantic-sentence > summary { display: list-item; cursor: pointer; }
.semantic-sentence-title strong { font-size: .9rem; margin-inline-end: .6rem; }
.semantic-sentence-title > span { font-family: 'Source Serif 4', Georgia, serif; }
.semantic-sentence-score { display: block; margin: .55rem 0 .15rem 1.1rem; }
.semantic-sentence-measures { margin-inline-start: 1.1rem; }
.semantic-inspect { display: grid; grid-template-columns: minmax(0,1fr) minmax(16rem,1fr); gap: 1rem; align-items: start; margin: 1rem 0 .25rem; }
.semantic-context { margin: 0; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.15rem; line-height: 2.2; white-space: pre-wrap; }
.semantic-word { color: var(--ink); font: inherit; line-height: inherit; padding: 0 .1em; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; background: transparent; border: none; border-bottom: 2px dotted var(--muted); cursor: pointer; }
.semantic-word[aria-pressed=true] { border-bottom: 2px solid var(--teal); background: var(--teal-pale); }
.semantic-word:focus-visible, .semantic-modes button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.semantic-word-detail { border-inline-start: 2px solid var(--teal); padding-inline-start: 1rem; }
.semantic-word-detail p { margin: .3rem 0; }
.semantic-definition { font-family: 'Source Serif 4', Georgia, serif; }
.semantic-reading-title { display: block; margin: .75rem 0 .3rem; font-size: .9rem; }
.semantic-facts { display: grid; grid-template-columns: minmax(6rem,auto) minmax(4rem,1fr); gap: .15rem 1rem; font-size: .9rem; margin: .7rem 0; }
.semantic-alternatives summary, .semantic-sources summary { cursor: pointer; font-weight: 600; }
.semantic-alternatives ol { padding-inline-start: 1.4rem; }
.semantic-alternatives li { margin: .55rem 0; }
.semantic-sources { border-block-start: 1px solid var(--line); margin-top: 1rem; padding-top: .7rem; }
.semantic-sources p { margin: .4rem 0; }
@media (max-width: 700px) {
  .semantic-inspect { grid-template-columns: minmax(0,1fr); }
  .semantic-facts { grid-template-columns: 1fr 1fr; gap: .3rem .6rem; }
  .semantic-sentence-score, .semantic-sentence-measures { margin-inline-start: 0; }
}
