body { display: flex; flex-direction: column; align-items: center; }

:root { --board-width: 400px; }

#board { width: var(--board-width); margin: 0 auto; }

.wrap { width: 520px; text-align: center; }
.title { font-size: 20px; font-weight: bold; }
.subtitle { font-size: 14px; font-weight: normal; margin-bottom: 8px; }
.task { text-align: justify; margin-top: 0; }

#timer { width: var(--board-width); margin: 0 auto; text-align: right; }

.section-title { font-weight: bold; text-align: left; }

.notice, .notice-add { display: flex; align-items: center; margin: 4px 0; gap: 4px; text-align: left; }
.notice input, .notice span, .notice-add input { flex: 1; }

.icon {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
}
.icon:hover { background: #eee; border-radius: 4px; }

.lang-switch { position: fixed; top: 8px; right: 8px; display: flex; gap: 2px; }
.lang-switch button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 4px;
  opacity: 0.5;
}
.lang-switch button:hover { opacity: 0.8; }
.lang-switch button.active { opacity: 1; }

.processing { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.verdict-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 8px 0; text-align: left; }
.verdict-badge { font-weight: bold; }
.verdict-badge.ok { color: green; }
.verdict-badge.fail { color: #c00; }
.verdict-badge.warn { color: #c90; }
.verdict-answer { color: #888; font-size: 0.85em; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verdict-comment { flex-basis: 100%; }
