:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #1b2937;
  background: #eef3f5;
  color-scheme: light;
  --accent: #0c6258;
  --border: #cedbe0;
  --muted: #455d6b;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
button, input { font: inherit; }
.frame { width: min(1100px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { background: #123044; color: white; }
.header-content {
  min-height: 4.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header a { color: inherit; text-decoration: none; }
.brand { font-size: 1.2rem; font-weight: 700; }
.brand span { font-size: .9rem; font-weight: 500; color: #b8d8db; margin-left: .45rem; }
nav { display: flex; gap: 1.5rem; }
nav a:hover, .example-row button:hover { text-decoration: underline; }
main { padding: 3.2rem 0 2.5rem; }
.intro { margin-bottom: 2rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.25rem, 6vw, 3.45rem); letter-spacing: -.05em; margin-bottom: .6rem; }
h2 { font-size: 1.32rem; margin-bottom: 1rem; }
h3 { font-size: 1rem; margin-bottom: .35rem; }
p { line-height: 1.5; }
.intro p, #result-summary, .hint, .result-card p, .api p { color: var(--muted); }
.workspace { display: grid; grid-template-columns: 1fr 1.14fr; gap: 1.2rem; }
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(1.1rem, 4vw, 1.7rem);
}
#upload-form label { font-weight: 600; display: block; margin-bottom: .55rem; }
input[type=file] {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px dashed #91a9b0;
  border-radius: 7px;
  padding: .7rem;
  background: #f5f9fa;
}
input[type=file]::file-selector-button {
  background: #e1efee;
  color: #194840;
  border: 0;
  border-radius: 5px;
  padding: .4rem .6rem;
  margin-right: .65rem;
  font: inherit;
  cursor: pointer;
}
.hint { margin: .55rem 0 1rem; font-size: .88rem; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #0973a7; outline-offset: 3px; }
#check-button {
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: 7px;
  padding: .65rem 1rem;
  font-weight: 600;
}
#check-button:hover { background: #084f48; }
.examples { border-top: 1px solid var(--border); margin-top: 1.45rem; padding-top: 1.1rem; }
.example-row { display: flex; gap: .8rem; align-items: baseline; justify-content: space-between; margin-top: .4rem; }
.example-row a { font-size: .85rem; }
.example-row button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  padding: .25rem 0;
  text-align: left;
}
.result-cards { display: grid; gap: .75rem; }
.result-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .8rem 1rem;
}
.result-card h3, .result-card p { margin-bottom: 0; }
.result-card p { font-size: .86rem; margin-top: .15rem; }
.status { font-weight: 600; border-radius: 999px; padding: .35rem .65rem; background: #edf2f5; font-size: .83rem; }
.status[data-status=accepted] { background: #dcefe8; color: #0c553e; }
.status[data-status=rejected] { background: #f8e4e4; color: #862c35; }
.status[data-status=mixed] { background: #f7ecd2; color: #674809; }
.issues { line-height: 1.55; padding-left: 1.15rem; }
.issues li + li { margin-top: .4rem; }
.api { margin-top: 1.2rem; }
.api-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
#copy-button { color: var(--accent); background: white; border: 1px solid #a8c4bd; border-radius: 6px; padding: .45rem .7rem; }
code { font-family: Consolas, monospace; }
pre { margin: 0; padding: .85rem 1rem; overflow-x: auto; color: #d8efee; background: #123044; border-radius: 7px; line-height: 1.65; }
@media (max-width: 700px) {
  .frame { width: calc(100% - 2rem); }
  main { padding-top: 2rem; }
  .workspace { grid-template-columns: 1fr; }
}
