.sense-list {
  display: grid;
  gap: 8px;
  margin: 18px auto 0;
  max-width: 680px;
  position: relative;
}

.sense-list p {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(90px, auto) 1fr;
  gap: 12px;
  align-items: start;
  text-align: left;
  padding: 9px 12px;
  border: 1px solid rgba(233, 244, 250, 0.1);
  border-radius: 10px;
  background: rgba(8, 18, 27, 0.32);
}

.sense-list b {
  color: var(--orange2);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sense-list span {
  color: #c7d4dc;
  font-size: 14px;
}

.meaning-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  position: relative;
}

.meaning-alternatives {
  max-width: 650px;
  margin: 14px auto 0;
  color: #bbcad5;
  font-size: 14px;
  position: relative;
}

.meaning-alternatives b { color: var(--orange2); }
.meaning-prompt { font-size: clamp(34px, 6vw, 66px); }
.answer-translation { color: #fff; }
.dictionary-source { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.sync-button:disabled { cursor: wait; opacity: 0.7; }

.phrase-panel {
  border-color: rgba(88, 181, 189, 0.34);
  background: linear-gradient(145deg, rgba(88, 181, 189, 0.13), var(--panel) 58%);
}

.phrase-exercise {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(150deg, #223546, #15222e);
  text-align: center;
}

.phrase-translation {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
}

.phrase-sentence {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  font-size: clamp(25px, 4vw, 43px);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.phrase-sentence input {
  width: min(260px, 44vw);
  padding: 3px 8px 6px;
  border: 0;
  border-bottom: 3px solid var(--orange);
  outline: 0;
  background: rgba(8, 18, 27, 0.48);
  color: #fff;
  text-align: center;
  border-radius: 8px 8px 2px 2px;
}

.phrase-sentence input:focus {
  box-shadow: 0 0 0 3px rgba(241, 162, 58, 0.18);
}

.phrase-hint {
  margin: 20px 0 0;
  color: #f5dcad;
  font-size: 14px;
}

.phrase-hint.is-review { color: var(--muted); }
.phrase-form > .check-button { min-width: 150px; }

.phrase-write-label,
.phrase-order-label {
  display: block;
  margin: 0 0 12px;
  color: #d9e5eb;
  font-weight: 700;
}

.phrase-write-input {
  display: block;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid rgba(230, 244, 250, 0.22);
  border-radius: 14px;
  outline: none;
  resize: vertical;
  background: rgba(8, 18, 27, 0.5);
  color: #fff;
  font: inherit;
  line-height: 1.5;
}

.phrase-write-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241, 162, 58, 0.18);
}

.phrase-order { max-width: 700px; margin: 0 auto; }

.phrase-answer-blocks {
  min-height: 62px;
  margin: 0 auto 18px;
  padding: 15px 18px;
  border: 1px dashed rgba(241, 162, 58, 0.62);
  border-radius: 14px;
  background: rgba(8, 18, 27, 0.36);
  color: #fff;
  font-size: clamp(18px, 3vw, 25px);
  font-weight: 750;
  line-height: 1.35;
}

.phrase-order-placeholder { color: var(--muted); font-size: 15px; font-weight: 500; }

.phrase-choice-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 18px;
}

.phrase-block {
  padding: 10px 14px;
  border: 1px solid rgba(230, 244, 250, 0.22);
  border-radius: 11px;
  background: rgba(35, 57, 73, 0.94);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.phrase-block:hover:not(:disabled) { border-color: var(--orange); transform: translateY(-1px); }
.phrase-block:disabled, .phrase-block.is-selected { opacity: 0.38; cursor: default; }

.phrase-correction {
  max-width: 620px;
  margin: 18px auto 0;
  padding: 15px;
  border: 1px solid rgba(255, 109, 126, 0.35);
  border-radius: 14px;
  background: rgba(91, 25, 35, 0.25);
  text-align: left;
}

.phrase-correction p {
  margin: 0 0 5px;
  color: #f6bac1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phrase-correction p:not(:first-child) { margin-top: 13px; }

.phrase-correction-line {
  color: #eef6fa;
  font-size: 17px;
  line-height: 1.55;
}

.phrase-correction-line.is-correct { color: #d5f7df; }
.phrase-mistake { color: #ff9aa7; text-decoration: underline 2px #ff4960; text-underline-offset: 4px; }
.phrase-correction-word { color: #fff; text-decoration: underline 2px #69d98d; text-underline-offset: 4px; }
.phrase-retry-note { margin: 13px 0 0; color: #ffd0d5; font-size: 13px; }

@media (max-width: 760px) {
  .sense-list p { grid-template-columns: 1fr; gap: 3px; }
  .phrase-exercise { padding: 24px 16px; }
  .phrase-sentence { gap: 7px; }
  .phrase-sentence input { width: min(210px, 68vw); }
}
