@charset "UTF-8";
:root {
  --paper: #f5f5ef;
  --ink: #29362f;
  --muted: #64716b;
  --line: #e2e5dc;
  --accent: #315f51;
  --soft: #eef4f0;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
button, textarea, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #587e77; outline-offset: 3px; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.shell { max-width: 1220px; margin: auto; padding: 0 28px; }
.masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 27px 0 10px; border-bottom: 0; }
.page-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
h1 { margin: 0; color: #284b3d; font-family: Georgia, "Times New Roman", serif; font-size: 35px; line-height: 1.16; font-weight: 600; letter-spacing: -1.3px; }
h1 a { color: inherit; text-decoration: none; }
.page-title > span { color: var(--muted); font-size: 13px; letter-spacing: 1.1px; text-transform: uppercase; }
.edition { color: var(--muted); font-size: 14px; white-space: nowrap; }
.intro { margin: 7px 0 19px; color: #647166; font-size: 16px; }
.composer { border: 1px solid #d6e0d2; border-radius: 20px; background: #fff; box-shadow: 0 9px 30px #3548310c; transition: border-color .18s, box-shadow .18s; }
.composer:focus-within { border-color: #9db7a1; box-shadow: 0 0 0 3px #e6eee2, 0 8px 24px #283e290d; }
.composer form { padding: 18px 21px 12px; }
.composer-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.composer-label label { font-weight: 600; font-size: 16px; }
.examples-link { color: #60786b; font-size: 14px; text-decoration-color: #b1c0b7; text-underline-offset: 3px; }
textarea { display: block; width: 100%; min-height: 66px; max-height: 250px; resize: vertical; border: 1px solid transparent; border-radius: 7px; background: #fff; color: var(--ink); font-size: 19px; line-height: 1.55; padding: 6px 0; }
textarea::placeholder { color: #7b8981; }
textarea:focus { outline: none; border-color: transparent; background: #fff; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.composer-footer p { font-size: 14px; color: var(--muted); margin: 0; }
kbd { font: inherit; font-size: 13px; }
.composer-actions { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
#char-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.text-button { border: 0; background: transparent; padding: 7px 3px; color: var(--accent); font-size: 14px; }
.search-button { min-width: 112px; min-height: 41px; padding: 7px 23px; border: 1px solid var(--accent); border-radius: 24px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; box-shadow: 0 3px 8px #254b321a; transition: background .15s, transform .15s; }
.search-button:active:not(:disabled) { transform: translateY(1px); }
.search-button:hover:not(:disabled) { background: #284d43; }
.connection-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 7px 21px; border-top: 1px solid #edf0e8; background: #f9fbf7; color: var(--muted); font-size: 14px; border-radius: 0 0 20px 20px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #949b96; }
.status-dot.ready { background: #4c7766; }
.status-dot.failed { background: #a6553f; }
.separator { color: #82898b; margin: 0 2px; }
.message { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0; padding: 10px 13px; border: 1px solid; border-radius: 5px; font-size: 15px; overflow-wrap: anywhere; }
.error { background: #fcf4f1; border-color: #e2c8bf; color: #8c3d28; }
.warning { background: #fcf8ec; border-color: #dfd3b4; color: #715b26; }
.listening-section { margin-top: 23px; scroll-margin-top: 16px; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.results-heading h2 { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; line-height: 1.3; margin: 0; letter-spacing: -.35px; }
#meta { color: var(--muted); font-size: 14px; margin: 0; text-align: right; }
.searched-query { color: #555e60; font-size: 14px; line-height: 1.45; margin: 0 0 9px; max-height: 61px; overflow: auto; overflow-wrap: anywhere; }
.comparison { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.model-panel { --model-color: #355f55; --model-bg: #edf4ee; border: 1px solid #e1e6dd; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 6px 24px #35423208; }
.model-panel.base { --model-color: #516a85; --model-bg: #f0f4f8; }
.model-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 17px 17px 13px; border-bottom: 1px solid #e8ece4; background: #fff; }
.model-title { display: flex; align-items: center; gap: 8px; }
.model-swatch { width: 7px; height: 7px; border-radius: 50%; background: var(--model-color); box-shadow: 0 0 0 4px var(--model-bg); margin-right: 3px; }
.model-header h3 { font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -.15px; }
.model-badge { color: var(--model-color); background: var(--model-bg); border-radius: 20px; padding: 3px 9px; font-size: 13px; white-space: nowrap; }
.empty-state { display: flex; flex-direction: column; justify-content: center; min-height: 105px; padding: 18px; color: var(--muted); }
.empty-state p { font-size: 15px; color: #474f51; margin: 0 0 4px; }
.empty-state span { font-size: 14px; }
.track-list { padding: 0 15px; }
.track { display: grid; grid-template-columns: 30px minmax(0, 1fr) 65px; align-items: center; column-gap: 12px; padding: 9px 0; border-bottom: 1px solid #ecf0ee; min-height: 56px; }
.track:last-child { border-bottom: 0; }
.track { transition: background .15s; border-radius: 9px; }
.track:hover { background: #f8faf5; }
.track.is-playing { background: var(--model-bg); }
.track.is-playing .play { background: var(--model-color); border-color: var(--model-color); color: #fff; }
.track-top { display: contents; }
.track-name { grid-column: 1; grid-row: 1; }
.rank { color: #5f6668; font-size: 14px; font-variant-numeric: tabular-nums; }
.score { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; color: #3d4849; font-size: 16px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.score small { color: var(--muted); font-size: 13px; }
.player { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.play { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border: 1px solid #d4dfd9; border-radius: 50%; padding: 0; color: var(--model-color); background: var(--model-bg); transition: border-color .15s, background .15s, transform .15s; }
.play:active { transform: scale(.96); }
.play:hover { border-color: var(--model-color); background: #fff; }
.play svg { width: 13px; height: 13px; fill: currentColor; }
.seek { appearance: none; flex: 1 1 auto; min-width: 20px; width: 100%; height: 4px; margin: 14px 0; border-radius: 4px; background: linear-gradient(to right,var(--model-color) 0 var(--progress,0%),#dfe4e2 var(--progress,0%) 100%); accent-color: var(--model-color); cursor: pointer; }
.seek::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--model-color); }
.seek::-moz-range-thumb { border: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--model-color); }
.time { flex-shrink: 0; width: 72px; color: #596366; font-size: 13px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.track > audio { display: none; }
.audio-error { grid-column: 2 / -1; font-size: 14px; color: #943f2b; margin-top: 5px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 7px 15px; color: var(--muted); font-size: 13px; }
.skeleton { height: 56px; border-bottom: 1px solid #edf0ed; margin: 0 15px; position: relative; overflow: hidden; }
.skeleton:before { content: ""; display: block; width: 83%; height: 8px; border-radius: 3px; background: #e9edeb; margin: 24px 0; }
.skeleton:after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, #fff9, transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.examples-section { margin-top: 17px; }
.section-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 9px; }
.section-label h2 { font-size: 16px; font-weight: 600; margin: 0; scroll-margin-top: 16px; }
.section-label > span { font-size: 14px; color: var(--muted); }
.examples-toggle { margin-left: auto; padding: 3px 0 3px 8px; color: var(--accent); border: 0; background: none; font-size: 14px; white-space: nowrap; }
.examples-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
.examples { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 0; padding: 0; list-style: none; }
.example-item { flex: 0 1 auto; min-width: 0; max-width: calc(50% - 4px); margin: 0; padding: 0; }
.examples.can-collapse:not(.expanded) .example-item:nth-child(n+7) { display: none; }
.example { display: block; width: 100%; border: 1px solid #dde3d4; border-radius: 15px; background: #edf0e7; padding: 8px 13px; color: #415a47; font-size: 14.5px; line-height: 1.48; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.example-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-width: 0; overflow-wrap: anywhere; }
.example:hover:not(:disabled) { border-color: #9bb39c; background: #f5f8ef; box-shadow: 0 3px 9px #2a4e360b; transform: translateY(-1px); }
.example.active { border-color: #769880; background: #e2eddf; color: #244d3b; }
footer { margin-top: 21px; padding: 15px 0 22px; border-top: 1px solid var(--line); color: var(--muted); }
footer p { font-size: 14px; line-height: 1.65; margin: 0 0 7px; max-width: 1100px; }
footer a { text-decoration-color: #b9c6b8; text-underline-offset: 3px; }
.footer-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; color: var(--muted); font-size: 13px; }
.license-link { border: 0; background: none; color: var(--accent); padding: 4px 0; font-size: 13px; white-space: nowrap; }
.license-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.license-dialog { width: min(680px,calc(100% - 32px)); max-height: 85vh; overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 22px 25px; color: var(--ink); background: #fdfdfb; box-shadow: 0 20px 70px #1c2e3033; }
.license-dialog::backdrop { background: #23322b66; }
.license-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.license-heading h2 { font-size: 22px; margin: 0; }
.license-heading form { margin: 0; }
.license-dialog p,.license-dialog dd { font-size: 14px; line-height: 1.65; }
.license-dialog dt { font-size: 15px; font-weight: 600; margin-top: 17px; }
.license-dialog dd { margin: 3px 0 0; }
.license-modifications { border-top: 1px solid var(--line); padding-top: 13px; color: var(--muted); }
.source-credits { margin-top: 8px; font-size: 13px; }
.source-credits summary { cursor: pointer; color: var(--accent); }
.source-credits summary:focus-visible { outline: 2px solid #587e77; outline-offset: 3px; }
.source-credits p { margin-top: 7px; }
.skip-link { position: absolute; left: 12px; top: -100px; background: #fff; padding: 12px; z-index: 10; }
.skip-link:focus { top: 12px; }
@media (max-width: 900px) {
  .shell { padding: 0 20px; }
  .composer-actions { gap: 12px; }
  .shortcut { display: none; }
  .model-header { padding: 10px 12px; }
  .model-header h3 { font-size: 17px; }
  .track-list { padding: 0 12px; }
  .track { grid-template-columns: 24px minmax(0, 1fr) 58px; column-gap: 8px; }
  .player { gap: 7px; }
  .time { width: 63px; }
}
@media (max-width: 650px) {
  .shell { padding: 0 16px; }
  .masthead { padding: 16px 0 12px; align-items: flex-start; gap: 10px; }
  .page-title { display: block; }
  h1 { font-size: 30px; }
  .page-title > span { display: block; font-size: 13px; letter-spacing: 1px; margin-top: 5px; }
  .edition { font-size: 13px; padding-top: 6px; }
  .intro { font-size: 15px; margin: 12px 0; }
  .composer form { padding: 12px; }
  .composer-label label { font-size: 16px; }
  .examples-link { font-size: 14px; }
  textarea { font-size: 17px; min-height: 70px; padding: 7px 0; }
  .composer-footer { flex-wrap: wrap; gap: 8px; padding-top: 8px; }
  .composer-footer p { flex-basis: 100%; font-size: 14px; }
  .composer-actions { width: 100%; gap: 14px; }
  #char-count { margin-right: auto; }
  .search-button { min-width: 102px; }
  .connection-line { padding: 8px 12px; gap: 6px; font-size: 14px; }
  .connection-line .separator:nth-last-child(2), .connection-line > span:last-child { display: none; }
  .listening-section { margin-top: 18px; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 3px; margin-bottom: 8px; }
  #meta { text-align: left; font-size: 14px; }
  .searched-query { font-size: 14px; max-height: 61px; }
  .comparison { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .model-header h3 { font-size: 18px; }
  .model-badge { font-size: 14px; }
  .empty-state { min-height: 88px; padding: 14px; }
  .track { grid-template-columns: 23px minmax(0, 1fr) 59px; column-gap: 8px; padding: 8px 0; min-height: 54px; }
  .player { gap: 7px; }
  .play { width: 37px; height: 37px; flex-basis: 37px; }
  .time { width: 65px; font-size: 13px; }
  .panel-foot { padding: 7px 12px; font-size: 13px; }
  .examples-section { margin-top: 14px; }
  .section-label { gap: 10px; }
  .section-label > span { display: none; }
  .examples { gap: 7px; }
  .example-item { max-width: 100%; }
  .example { font-size: 14px; padding: 8px 10px; }
  footer { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
