:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  color: #34433f;
  background: #f4f6f2;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: #f4f6f2;
}

body {
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: #f4f6f2;
}

button {
  font: inherit;
}

.app,
.screen {
  min-width: 0;
}

.screen[hidden],
.step-instructions[hidden],
.start-button[hidden],
.step-status[hidden],
.verb-grid[hidden],
.step-actions[hidden] {
  display: none;
}

.start-screen {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 7vw, 4rem) 1.25rem;
  place-items: center;
}

.start-panel {
  width: 100%;
  max-width: 36rem;
  padding: clamp(2.5rem, 7vw, 3.5rem) clamp(1.375rem, 7vw, 3.5rem);
  overflow-wrap: anywhere;
  background: #ffffff;
  border: 1px solid #e1e7df;
  border-radius: 1.5rem;
  box-shadow: 0 1rem 2.5rem rgba(52, 67, 63, 0.08);
}

.start-panel h1 {
  max-width: 12em;
  margin: 0 auto;
  color: #2f5f56;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

.start-button {
  display: block;
  width: 100%;
  max-width: 20rem;
  min-height: 3.5rem;
  margin: clamp(2.25rem, 8vw, 3rem) auto 0;
  padding: 0.75rem 1.5rem;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  background: #4b796f;
  border: 0;
  border-radius: 0.875rem;
  cursor: pointer;
}

.start-button:hover {
  background: #416d64;
}

.start-button:focus-visible {
  outline: 3px solid #a9c9c1;
  outline-offset: 4px;
}

.step-one-screen {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 3rem) 1rem 3rem;
}

.step-one-header {
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: #ffffff;
  border: 1px solid #e1e7df;
  border-radius: 1.25rem;
  box-shadow: 0 0.75rem 2rem rgba(52, 67, 63, 0.07);
}

.step-number {
  margin: 0;
  color: #4b796f;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.step-one-title {
  margin: 0.5rem 0 0;
  color: #2f5f56;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 650;
  line-height: 1.45;
}

.step-description {
  font-size: 1.0625rem;
}

.step-instructions {
  margin: 1rem 0 0;
  color: #53645f;
  font-weight: 600;
  line-height: 1.85;
  text-align: left;
}

.selection-start-button {
  margin-top: 1.5rem;
}

.step-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.status-item {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0.875rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  color: #53645f;
  background: #f4f7f4;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
}

.status-item strong {
  color: #2f5f56;
  font-size: 1.125rem;
  white-space: nowrap;
}

.status-item > span {
  color: #465751;
  font-weight: 600;
}

.verb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.verb-button {
  width: 100%;
  min-width: 0;
  min-height: 3.5rem;
  padding: 0.75rem 0.625rem;
  overflow-wrap: anywhere;
  color: #3e4f4a;
  background: #ffffff;
  border: 1px solid #d8e1dc;
  border-radius: 0.875rem;
  cursor: pointer;
  font-size: clamp(1rem, 4vw, 1.0625rem);
  font-weight: 600;
  line-height: 1.4;
}

.verb-button:hover {
  border-color: #a9c2bb;
}

.verb-button:focus-visible {
  outline: 3px solid #a9c9c1;
  outline-offset: 3px;
}

.verb-button[aria-pressed="true"] {
  color: #28564d;
  background: #e1efeb;
  border-color: #83aa9f;
  box-shadow: inset 0 0 0 1px #83aa9f;
}

.step-actions {
  margin-top: 2rem;
  text-align: center;
}

.next-button {
  width: 100%;
  max-width: 20rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.5rem;
  color: #ffffff;
  background: #c6d0cc;
  border: 0;
  border-radius: 0.875rem;
  cursor: not-allowed;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.next-button:not(:disabled) {
  background: #4b796f;
  cursor: pointer;
}

.next-button:not(:disabled):hover {
  background: #416d64;
}

.next-button:not(:disabled):focus-visible {
  outline: 3px solid #a9c9c1;
  outline-offset: 4px;
}

.step-dialog {
  width: min(calc(100% - 2rem), 32rem);
  padding: 0;
  color: #354640;
  background: #ffffff;
  border: 1px solid #d8e2dd;
  border-radius: 1.25rem;
  box-shadow: 0 1rem 3rem rgba(52, 67, 63, 0.2);
}

.step-dialog::backdrop {
  background: rgba(39, 52, 48, 0.35);
}

.step-dialog-content {
  padding: clamp(1.5rem, 6vw, 2rem);
}

.step-dialog-message {
  margin: 0;
  color: #465751;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.8;
  white-space: pre-line;
}

.step-dialog-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.step-dialog-button {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: #4b796f;
  border: 0;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 650;
}

.step-dialog-button:hover {
  background: #416d64;
}

.step-dialog-button:focus-visible {
  outline: 3px solid #a9c9c1;
  outline-offset: 3px;
}

.step-two-screen {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 3rem) 1rem 3rem;
}

.step-two-header {
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: #ffffff;
  border: 1px solid #e1e7df;
  border-radius: 1.25rem;
  box-shadow: 0 0.75rem 2rem rgba(52, 67, 63, 0.07);
}

.step-two-title {
  margin: 0.5rem 0 0;
  color: #2f5f56;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 650;
  line-height: 1.45;
}

.step-two-instructions {
  margin: 1rem 0 0;
  color: #53645f;
  font-weight: 600;
  line-height: 1.85;
}

.step-two-examples {
  margin-top: 1rem;
  color: #53645f;
  opacity: 1;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
}

.step-two-example-label,
.step-two-example-line {
  margin: 0;
  color: #53645f;
  opacity: 1;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
}

.step-two-example-label::before,
.step-two-example-label::after,
.step-two-example-line::before,
.step-two-example-line::after {
  color: #53645f;
  opacity: 1;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
}

.step-two-example-line {
  margin-top: 0.25rem;
}

.step-two-list {
  display: grid;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.step-two-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1.1fr);
  min-width: 0;
  padding: 1rem;
  align-items: center;
  gap: 0.375rem;
  background: #ffffff;
  border: 1px solid #e1e7df;
  border-radius: 1rem;
}

.step-two-bracket {
  color: #63726e;
  font-size: 1.125rem;
  line-height: 1;
}

.step-two-input {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.625rem 0.75rem;
  color: #354640;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  background: #fbfcfb;
  border: 1px solid #c8d5d0;
  border-radius: 0.625rem;
}

.step-two-input:focus {
  outline: 3px solid #c3dbd5;
  outline-offset: 1px;
  border-color: #6f9a90;
}

.step-two-input.is-invalid {
  background: #fffaf2;
  border-color: #c9aa82;
}

.step-two-input.is-invalid:focus {
  outline-color: #ead9c2;
  border-color: #b99466;
}

.step-two-verb {
  min-width: 0;
  color: #354640;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.step-two-verb-tabs {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: center;
  gap: 0.375rem;
}

.step-two-verb-tab {
  max-width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  color: #354640;
  background: #ffffff;
  border: 1px solid #b8c8c3;
  border-radius: 0.625rem;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.step-two-verb-tab[aria-pressed="true"] {
  color: #2f5f56;
  background: #e4f0ec;
  border-color: #83aa9f;
}

.step-two-verb-tab:focus-visible {
  outline: 3px solid #c3dbd5;
  outline-offset: 2px;
}

.step-two-actions {
  display: grid;
  width: 100%;
  max-width: 20rem;
  gap: 0.75rem;
  margin: 2rem auto 0;
}

.step-two-actions .next-button {
  max-width: none;
}

.step-two-validation-message {
  margin: 0;
  color: #6b553b;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
}

.step-two-validation-message[hidden] {
  display: none;
}

.restart-button {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.75rem 1.5rem;
  color: #2f5f56;
  background: #ffffff;
  border: 1px solid #83aa9f;
  border-radius: 0.875rem;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.restart-button:hover {
  background: #f4f7f4;
}

.restart-button:focus-visible {
  outline: 3px solid #a9c9c1;
  outline-offset: 4px;
}

.step-three-screen {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 3rem) 1rem 3rem;
}

.step-three-header {
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: #ffffff;
  border: 1px solid #e1e7df;
  border-radius: 1.25rem;
  box-shadow: 0 0.75rem 2rem rgba(52, 67, 63, 0.07);
}

.step-three-title {
  margin: 0.5rem 0 0;
  color: #2f5f56;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 650;
  line-height: 1.45;
}

.step-three-instructions {
  margin-top: 1rem;
  color: #53645f;
  font-weight: 600;
  line-height: 1.85;
  text-align: left;
}

.step-three-instructions p {
  margin: 0;
}

.step-three-instructions p + p {
  margin-top: 0.75rem;
}

.step-three-list {
  display: grid;
  gap: 0.875rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.step-three-card {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.step-three-card.is-selected .step-three-card-text {
  background: #edf5f2;
  border-color: #9fbbb3;
}

.step-three-card-number {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  place-items: center;
  color: #2f5f56;
  background: #e7f0ed;
  border: 1px solid transparent;
  border-radius: 0.625rem;
  font: inherit;
  font-weight: 700;
  cursor: default;
}

.step-three-list.has-selected-card .step-three-card-number {
  border-color: #bfd1cc;
  cursor: pointer;
}

.step-three-card-number:focus-visible,
.step-three-card-text:focus-visible,
.step-three-edit-button:focus-visible,
.step-three-edit-apply-button:focus-visible,
.step-three-edit-cancel-button:focus-visible,
.step-three-edit-input:focus-visible {
  outline: 3px solid rgba(73, 126, 112, 0.28);
  outline-offset: 2px;
}

.step-three-card-text {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  color: #354640;
  background: #ffffff;
  border: 1px solid #e1e7df;
  border-radius: 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.step-three-edit-button {
  min-width: 3.5rem;
  min-height: 2.75rem;
  padding: 0.625rem;
  color: #2f5f56;
  background: #ffffff;
  border: 1px solid #a9c3bc;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}

.step-three-edit-button:hover:not(:disabled) {
  background: #f4f7f4;
}

.step-three-edit-button:disabled {
  color: #7f8f8a;
  background: #f3f5f3;
  border-color: #d7dfdc;
  cursor: not-allowed;
}

.step-three-editor {
  display: grid;
  grid-column: 2 / -1;
  min-width: 0;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: #354640;
  background: #f7faf8;
  border: 1px solid #d8e3df;
  border-radius: 0.875rem;
}

.step-three-edit-line {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  color: #354640;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.step-three-edit-fixed-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.step-three-edit-bracket {
  flex: 0 0 auto;
}

.step-three-edit-input {
  flex: 1 1 8rem;
  min-width: 0;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.625rem;
  color: #354640;
  background: #ffffff;
  border: 1px solid #b9cbc5;
  border-radius: 0.625rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.step-three-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.step-three-edit-apply-button,
.step-three-edit-cancel-button {
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.step-three-edit-apply-button {
  color: #ffffff;
  background: #4b796f;
  border: 1px solid #4b796f;
}

.step-three-edit-apply-button:hover {
  background: #416d64;
  border-color: #416d64;
}

.step-three-edit-cancel-button {
  color: #2f5f56;
  background: #ffffff;
  border: 1px solid #a9c3bc;
}

.step-three-edit-cancel-button:hover {
  background: #f4f7f4;
}

.sentence-screen {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 7vw, 4rem) 1.25rem;
  place-items: center;
}

.sentence-panel {
  width: 100%;
  max-width: 44rem;
  padding: clamp(2rem, 7vw, 3.5rem) clamp(1.375rem, 7vw, 3.5rem);
  background: #ffffff;
  border: 1px solid #e1e7df;
  border-radius: 1.25rem;
  box-shadow: 0 0.75rem 2rem rgba(52, 67, 63, 0.07);
}

.summary-title {
  margin: 0;
  color: #2f5f56;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

.confirmed-sentence {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.25rem;
  margin: clamp(1.5rem, 6vw, 2.25rem) 0 0;
  padding: clamp(1.125rem, 5vw, 1.5rem);
  color: #354640;
  background: #f7faf8;
  border: 1px solid #dfe8e4;
  border-radius: 1rem;
  font-size: clamp(1.25rem, 5vw, 1.625rem);
  font-weight: 600;
  line-height: 1.9;
  text-align: center;
}

.confirmed-sentence-unit {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  max-width: 100%;
}

.confirmed-sentence-object {
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  padding: 0.02em 0.28em;
  background: #fcfdfc;
  border: 1px solid #cddbd6;
  border-radius: 0.25rem;
  overflow-wrap: anywhere;
}

.confirmed-sentence-verb {
  flex: 0 1 auto;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.confirmed-sentence-separator {
  flex: 0 0 auto;
}

.summary-guidance {
  margin-top: clamp(1.5rem, 6vw, 2rem);
  color: #53645f;
  font-weight: 600;
  line-height: 1.85;
}

.summary-guidance p {
  margin: 0;
}

.summary-guidance p + p {
  margin-top: 0.5rem;
}

.summary-copy-button {
  display: block;
  width: 100%;
  max-width: 20rem;
  min-height: 3.5rem;
  margin: clamp(1.5rem, 6vw, 2rem) auto 0;
  padding: 0.75rem 1rem;
  color: #2f5f56;
  background: #ffffff;
  border: 1px solid #83aa9f;
  border-radius: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}

.summary-copy-button:hover {
  background: #f4f7f4;
}

.summary-copy-button:focus-visible {
  outline: 3px solid #a9c9c1;
  outline-offset: 4px;
}

.copy-success-message {
  width: 100%;
  max-width: 20rem;
  margin: clamp(1.5rem, 6vw, 2rem) auto 0;
  color: #53645f;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
}

.copy-success-message[hidden] {
  display: none;
}

.copy-success-message:not([hidden]) + .summary-copy-button {
  margin-top: 0.5rem;
}

.summary-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(2rem, 7vw, 3rem);
}

.summary-actions .restart-button,
.summary-actions .next-button {
  flex: 1 1 10rem;
  width: auto;
  max-width: 12rem;
}

.step-four-screen,
.step-five-screen {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 3rem) 1rem 3rem;
}

.step-four-header,
.step-five-header {
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: #ffffff;
  border: 1px solid #e1e7df;
  border-radius: 1.25rem;
  box-shadow: 0 0.75rem 2rem rgba(52, 67, 63, 0.07);
}

.step-four-title,
.step-five-title {
  margin: 0.5rem 0 0;
  color: #2f5f56;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 650;
  line-height: 1.45;
}

.step-four-instructions {
  margin: 1rem 0 0;
  color: #53645f;
  font-weight: 600;
  line-height: 1.85;
}

.step-four-scale {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.step-four-scale p {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  margin: 0;
  padding: 0.625rem 0.5rem;
  align-content: center;
  gap: 0.25rem;
  color: #53645f;
  background: #f4f7f4;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  text-align: center;
}

.step-four-scale strong {
  color: #2f5f56;
  font-size: 1rem;
  white-space: nowrap;
}

.step-four-list {
  display: grid;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.step-four-item {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e1e7df;
  border-radius: 1rem;
}

.step-four-item.is-invalid {
  background: #fffaf2;
  border-color: #c9aa82;
}

.step-four-seed {
  width: 100%;
  padding: 0;
  color: #354640;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.step-four-rating-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.step-four-rating-choice {
  position: relative;
  min-width: 0;
}

.step-four-rating-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.step-four-rating-choice span {
  display: grid;
  min-height: 3rem;
  padding: 0.5rem;
  place-items: center;
  color: #354640;
  background: #ffffff;
  border: 1px solid #c8d5d0;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 650;
}

.step-four-rating-choice input:checked + span {
  color: #28564d;
  background: #e1efeb;
  border-color: #83aa9f;
  box-shadow: inset 0 0 0 1px #83aa9f;
}

.step-four-rating-choice input:focus-visible + span {
  outline: 3px solid #a9c9c1;
  outline-offset: 2px;
}

.step-four-actions {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 20rem;
  margin: 2rem auto 0;
}

.step-four-actions .next-button {
  max-width: none;
}

.step-four-validation-message {
  margin: 0;
  color: #6b553b;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
}

.step-four-validation-message[hidden] {
  display: none;
}

.step-five-result {
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 5vw, 1.75rem);
  background: #ffffff;
  border: 1px solid #e1e7df;
  border-radius: 1rem;
}

.step-five-score-label {
  margin: 0;
  color: #53645f;
  font-size: 0.9375rem;
  font-weight: 600;
}

.step-five-score {
  margin: 0.375rem 0 0;
  color: #2f5f56;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 650;
  line-height: 1.4;
}

.step-five-message {
  margin: 1rem 0 0;
  color: #53645f;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.85;
}

.rating-result-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.rating-result-item {
  display: flex;
  min-width: 0;
  padding: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #354640;
  background: #ffffff;
  border: 1px solid #e1e7df;
  border-radius: 1rem;
}

.rating-result-seed {
  min-width: 0;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.rating-result-mark {
  flex: 0 0 auto;
  color: #2f5f56;
  font-size: 1.375rem;
}

.step-five-actions {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 20rem;
  margin: 2rem auto 0;
}

.step-five-actions .copy-success-message,
.step-five-actions .summary-copy-button,
.step-five-actions .next-button {
  max-width: none;
  margin: 0;
}

.final-summary-screen {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 3rem) 1rem 3rem;
}

.final-summary-panel {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 3.5rem) clamp(1.375rem, 7vw, 3.5rem);
  background: #ffffff;
  border: 1px solid #e1e7df;
  border-radius: 1.25rem;
  box-shadow: 0 0.75rem 2rem rgba(52, 67, 63, 0.07);
}

.final-summary-section {
  margin-top: clamp(2rem, 7vw, 3rem);
}

.final-summary-heading {
  margin: 0;
  color: #2f5f56;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 650;
  line-height: 1.5;
}

.final-summary-score {
  margin: 0.75rem 0 0;
  color: #2f5f56;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 650;
  line-height: 1.4;
}

.final-summary-screen .confirmed-sentence,
.final-summary-screen .rating-result-seed {
  color: #2f5f56;
}

.final-summary-actions {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 20rem;
  margin: clamp(2rem, 7vw, 3rem) auto 0;
}

.final-summary-actions .summary-copy-button,
.final-summary-actions .restart-button {
  max-width: none;
  margin: 0;
}

.final-summary-actions .copy-success-message {
  max-width: none;
  margin: 0;
}

@media (max-width: 30rem) {
  .start-screen {
    padding: 1.25rem 1rem;
  }

  .start-panel {
    padding: 2.5rem 1.375rem;
    border-radius: 1.125rem;
  }

  .start-button {
    max-width: none;
  }

  .step-status {
    gap: 0.5rem;
  }

  .status-item {
    padding: 0.75rem;
  }

  .next-button {
    max-width: none;
  }
}

@media (min-width: 40rem) {
  .step-four-scale {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .verb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .verb-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
