/* Büyük dokunma alanları, okunaklı yazılar ve belirgin klavye odağı. */
body {
  background: #f3f0ff;
  color: #29234b;
  font-family: ui-rounded, "Segoe UI", Arial, sans-serif;
}
h1 { color: #5635ad; }
.description, #status { color: #51476c; }
.info {
  background: #fff;
  color: #51476c;
  border: 2px solid #e2daf7;
  border-radius: 22px;
}
.step { color: #6840b7; }
#angleResult { color: #5635ad; }
.buttons { gap: 14px; padding: 6px 2px; }
button, .file-button {
  min-height: 54px;
  border: 2px solid #49358b;
  border-radius: 19px;
  background: #ece5ff;
  color: #332354;
  padding: 14px 19px;
  font: 700 17px/1.35 ui-rounded, "Segoe UI", Arial, sans-serif;
  box-shadow: 0 4px 0 #b7a3db;
  transition: transform .12s ease, box-shadow .12s ease;
}
.file-button {
  background: #ffdf78;
  color: #513c0c;
  border-color: #876415;
  box-shadow: 0 4px 0 #d6b344;
  position: relative;
  overflow: hidden;
}
/* Dosya seçimi klavye ve ekran okuyucularla da kullanılabilir. */
#fileInput {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
#undoButton { background: #dcefff; border-color: #2f648b; color: #214869; box-shadow: 0 4px 0 #9cc4e3; }
#resetButton { background: #ffe2ec; border-color: #93516a; color: #74334c; box-shadow: 0 4px 0 #dfa6b9; }
#detect, #installButton { background: #c9f3df; border-color: #337057; color: #214d3c; box-shadow: 0 4px 0 #8ac5aa; }
#manual { background: #ece5ff; }
button:active, .file-button:active { transform: translateY(3px); box-shadow: 0 1px 0 #b7a3db; }
button:focus-visible, select:focus-visible, .file-button:focus-within {
  outline: 3px solid #2c58ce;
  outline-offset: 5px;
}
select {
  max-width: 100%;
  min-height: 48px;
  border: 2px solid #8874b2;
  border-radius: 13px;
  background: #fff;
  color: #332354;
  font: inherit;
  padding: 10px;
}
.info > button { margin: 10px 5px 6px 0; }
#lineChoices { display: flex; flex-wrap: wrap; gap: 9px; padding: 8px 0; }
#lineChoices button { margin: 0 !important; background: #ece5ff !important; color: #332354; }
#lineChoices button[aria-pressed="true"] {
  background: #ffdf78 !important;
  border-color: #70530b;
  color: #49360b;
  box-shadow: 0 4px 0 #d6b344;
}
#lineChoices button[aria-pressed="true"]::before { content: "✓ "; }
#autoResult { display: block; color: #5635ad; font-size: 21px; font-weight: 750; line-height: 1.5; }
@media (hover: hover) {
  button:hover, .file-button:hover { filter: brightness(.97); }
}
@media (max-width: 600px) {
  .info > button { width: 100%; margin-right: 0; }
  .info label { display: block; }
  .info select { display: block; width: 100%; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  button, .file-button { transition: none; }
}

.workshop-nav { max-width:800px; margin:0 auto 24px; display:flex; justify-content:space-between; gap:16px; font-size:13px; font-weight:700; }
.workshop-nav a { color:#5635ad; text-decoration:none; padding:8px 0; }
.workshop-nav a:focus-visible { outline:3px solid #2c58ce; outline-offset:4px; }
