@charset "UTF-8";

:root {
  color-scheme: light;
  font: 100%/1.55 "Segoe UI", system-ui, sans-serif;
  --ink: #172a2a;
  --muted: #506361;
  --paper: #f5f8f5;
  --white: #fff;
  --border: #dbe5dd;
  --green: #116544;
  --dark: #12382c;
  --mint: #baedac;
  --radius: 20px;
  --shadow: 0 14px 32px #153f2810;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--green); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #087a67; outline-offset: 4px; }
[hidden] { display: none !important; }
.frame { width: min(100% - 3rem, 1180px); margin-inline: auto; }
main { flex: 1; padding: 2.5rem 0 4rem; }
main:focus { outline: none; }
.skip-link { position: fixed; top: -10rem; left: 1rem; z-index: 5; background: white; padding: .75rem; }
.skip-link:focus { top: .5rem; }
.mast { background: #fbfdfb; border-bottom: 1px solid var(--border); }
.mast-inner { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.4rem; }
.brand, .footer-brand { text-decoration: none; color: var(--ink); font-weight: 750; }
.brand { font-size: 1.23rem; display: inline-flex; gap: .65rem; align-items: center; white-space: nowrap; }
.brand-accent { color: var(--green); }
.brand-mark { width: 37px; height: 37px; border-radius: 11px; background: var(--dark); display: flex; align-items: center; justify-content: center; gap: 2px; }
.brand-mark i { width: 2px; height: 9px; border-radius: 5px; background: #c2f2ad; }
.brand-mark i:nth-child(2n) { height: 14px; }
.brand-mark i:nth-child(3) { height: 20px; }
nav { display: flex; flex-wrap: wrap; gap: .15rem; align-items: center; }
nav a { border-radius: 9px; padding: .55rem .75rem; color: var(--muted); text-decoration: none; font-weight: 650; font-size: .91rem; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--green); background: #e8f3e9; }
#account { display: flex; align-items: center; gap: .5rem; }
#account a { max-width: 12rem; overflow-wrap: anywhere; }
.btn { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: .45rem;
  padding: .58rem 1rem; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 700;
  line-height: 1.25; background: white; color: var(--ink); text-align: center; }
.btn:hover:not(:disabled) { filter: brightness(.965); }
.btn-primary { background: var(--green); color: white; }
.btn-quiet { color: var(--green); border-color: var(--border); }
.btn-danger { background: #a52f33; color: white; }
.btn-small { font-size: .9rem; }
.hero { position: relative; color: white; isolation: isolate; background: #12392f; overflow: hidden; border-radius: 28px;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); min-height: 390px; box-shadow: var(--shadow); }
.hero-content { padding: clamp(1.6rem,5.3vw,4.25rem); align-self: center; z-index: 1; }
.hero h1 { font-weight: 730; font-size: clamp(2.55rem,5.15vw,4.5rem); line-height: 1.03; letter-spacing: -.066em; margin: 0 0 1.1rem; max-width: 13ch; }
.hero h1 em { color: #c7f0af; font-style: normal; }
.hero p { max-width: 42ch; margin: 0 0 1.65rem; color: #e0eee4; font-size: 1.05rem; }
.hero .eyebrow { margin-bottom: .72rem; color: #c7f0af; }
.hero .btn-primary { background: var(--mint); color: #183827; }
.wave-field { position: relative; overflow: hidden; align-self: stretch; min-height: 130px;
  background: radial-gradient(ellipse at 57% 50%, #286448, transparent 70%); }
.wave-field::before { content: ""; position: absolute; inset: 0; opacity: .28;
  background-image: linear-gradient(#77aa903e 1px, transparent 1px), linear-gradient(90deg,#77aa903e 1px,transparent 1px);
  background-size: 30px 30px; mask-image: radial-gradient(ellipse, black 8%, transparent 75%); }
.wave-field::after { content: ""; position: absolute; width: 70%; height: 1px; top: 50%; left: 15%; background: #a8d29955; }
.wave-bars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(3px,.48vw,8px); }
.wave-bars i { width: clamp(3px,.42vw,7px); height: 100%; background: linear-gradient(0deg,#7da89a,#c5f7a9); border-radius: 20px; opacity: .91; box-shadow: 0 0 11px #8ade9554; }
.wave-bars i:nth-child(13n+1), .wave-bars i:nth-child(13n+11) { height: 5%; opacity: .38; }
.wave-bars i:nth-child(13n+2), .wave-bars i:nth-child(13n+10) { height: 11%; opacity: .58; }
.wave-bars i:nth-child(13n+3), .wave-bars i:nth-child(13n+9) { height: 18%; }
.wave-bars i:nth-child(13n+4), .wave-bars i:nth-child(13n+8) { height: 26%; }
.wave-bars i:nth-child(13n+5), .wave-bars i:nth-child(13n+7) { height: 38%; }
.wave-bars i:nth-child(13n+6) { height: 52%; }
.wave-bars i:nth-child(13n+12), .wave-bars i:nth-child(13n+13) { height: 3%; opacity: .25; }
.wave-bars i:nth-child(-n+8), .wave-bars i:nth-child(n+28) { scale: 1 .64; }
.eyebrow { font-size: .81rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; color: var(--green); }
.section-head { margin-bottom: 1.25rem; }
.section-head h1, .section-head h2 { margin: 0; line-height: 1.13; letter-spacing: -.042em; font-size: clamp(1.8rem,4vw,2.7rem); }
.section-head p { margin: .4rem 0 0; color: var(--muted); }
.dashboard-section { margin-top: 2.6rem; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 1.05rem; }
.metric, .panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.metric { padding: 1rem 1.25rem; min-width: 0; }
.metric strong { display: block; font-size: clamp(1.35rem,4vw,2rem); color: var(--dark); line-height: 1.18; font-variant-numeric: tabular-nums; }
.metric span { color: var(--muted); }
.panel { padding: clamp(1rem,3vw,1.7rem); margin-bottom: 1rem; }
.panel h2,.panel h3 { line-height: 1.25; margin: 0 0 .9rem; }
.panel p:last-child { margin-bottom: 0; }
.table-box { overflow: auto; border: 1px solid var(--border); border-radius: 13px; }
table { width: 100%; text-align: left; border-collapse: collapse; }
td, th { padding: .85rem .95rem; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
th { font-size: .9rem; background: #eef5ee; color: #415b4b; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank { min-width: 2rem; min-height: 2rem; display: inline-grid; place-items: center; background: #e9f4e8; color: var(--green); border-radius: 8px; font-weight: 750; }
.rank-empty { padding: 1.2rem; text-align: center; color: var(--muted); }
.me { background: #f2f9ef; }
.footer { border-top: 1px solid var(--border); color: var(--muted); background: #fbfdfb; }
.footer-inner { min-height: 74px; padding-block: .7rem; display: flex; flex-wrap: wrap; gap: .55rem 1.1rem; align-items: center; }
.tooltip-setting { margin-inline-start: auto; display: flex; align-items: center; gap: .4rem; font-size: .88rem; }
.tooltip-setting input { accent-color: var(--green); width: 1.1rem; height: 1.1rem; }
.notice { color: #245a41; padding: .75rem 1rem; margin: 0 0 1rem; background: #e9f5e9; border-radius: 10px; }
.notice.error { color: #812226; background: #fff0f0; }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 3; padding: .85rem 1rem;
  max-width: min(500px,calc(100vw - 2rem)); border-radius: 12px; color: white; background: var(--dark); box-shadow: var(--shadow); }
.toast:empty { display: none; }
.narrow { max-width: 800px; margin-inline: auto; }
.kicker { color: var(--muted); font-size: .91rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.sentence { font-size: clamp(1.5rem,4vw,2.15rem); letter-spacing: -.028em; margin: .8rem 0 1.3rem; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.32; }
.ratings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin: 1.1rem 0; }
.rating { text-align: left; display: block; border: 1px solid var(--border); border-left: 4px solid var(--stripe); border-radius: 10px;
  padding: .68rem .8rem; color: var(--ink); background: var(--tint); min-height: 46px; font-weight: 720; }
.rating:hover, .rating[aria-pressed=true] { border-color: var(--stripe); }
.rating span { display: block; font-size: .87rem; font-weight: 500; color: #40534d; margin-top: .15rem; }
.cat-3 { --stripe: #418a5e; --tint: #edf8ed; }
.cat-2 { --stripe: #478480; --tint: #edf7f6; }
.cat-1 { --stripe: #a8783b; --tint: #fff7e8; }
.cat-0 { --stripe: #b85e64; --tint: #fff0f0; }
.badge { display: inline-block; border-radius: 999px; color: #263c34; background: var(--tint,#e8efea); padding: .16rem .55rem; font-size: .87rem; font-weight: 650; }
.player { padding: .55rem .7rem; border-radius: 12px; background: #eff5ee; border: 1px solid var(--border); }
.player-controls { display: flex; gap: .75rem; align-items: center; }
.player audio { display: none; }
.player button { position: relative; padding: .4rem; flex: 0 0 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid #c4d3c5; background: white; border-radius: 10px; }
.player button img { width: 27px; height: 27px; object-fit: contain; }
.player input { min-width: 2rem; flex: 1; accent-color: var(--green); cursor: pointer; }
.player time { font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player .notice { margin: .5rem 0 0; }
.icon-tip { display: none; min-width: max-content; position: absolute; left: 0; bottom: calc(100% + .4rem); color: white;
  background: var(--dark); padding: .25rem .5rem; border-radius: 5px; z-index: 2; }
body:not(.no-tips) .player button:is(:focus-visible,:hover) .icon-tip { display: block; }
summary { cursor: pointer; color: var(--green); min-height: 42px; display: list-item; padding: .46rem 0; }
details dl { margin: .2rem 0 .8rem; }
details dd { margin: 0 0 .5rem; color: var(--muted); }
details dt { font-weight: 700; }
.field { display: grid; gap: .28rem; font-weight: 600; min-width: 0; }
.field input, .field select { font-weight: 400; width: 100%; border: 1px solid #afc3b4; padding: .55rem .7rem;
  border-radius: 9px; color: var(--ink); background: white; min-height: 44px; min-width: 0; }
.field input[type=file] { font-size: .88rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); gap: .7rem; align-items: end; margin: .75rem 0; }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.muted { color: var(--muted); }
.pager { align-items: center; justify-content: space-between; margin: .9rem 0 0; }
.admin-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.41fr); align-items: start; gap: 1rem; }
.admin-layout > * { min-width: 0; }
.admin-table td:first-child { min-width: 11rem; }
.admin-table td > a { font-weight: 650; }
.center { text-align: center; }
.history-row h2 { margin-bottom: .25rem; overflow-wrap: anywhere; }
.history-row p { overflow-wrap: anywhere; }
.history-row form { margin-top: .75rem; }
.progress { width: 100%; accent-color: var(--green); }
.corpus { border-top: 1px solid var(--border); margin-top: .6rem; padding-top: .6rem; overflow-wrap: anywhere; }
.list-text { overflow-wrap: anywhere; }
@media (max-width: 920px) {
  .mast-inner { gap: .65rem; }
  .mast-inner nav { grid-row: 2; grid-column: 1 / -1; padding-bottom: .5rem; }
  .mast-inner { padding: .7rem 0 .2rem; }
  #account { justify-self: end; grid-column: 3; }
  .admin-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  .frame { width: calc(100% - 1.5rem); }
  main { padding-top: 1.4rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding-bottom: .5rem; }
  .wave-field { min-height: 150px; }
  .metrics { gap: .45rem; }
  .metric { padding: .65rem; border-radius: 12px; }
  .metric span { font-size: .9rem; }
  .tooltip-setting { margin-inline-start: 0; }
  td, th { padding: .62rem .52rem; }
}
@media (max-width: 350px) {
  .ratings { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.22rem; }
  .player-controls { gap: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
