/* Văn bản của bạn signed out (local-reader.js) in design system v3: the heading, the card asking to sign in, the text. */

.ut-local {
  min-height: 100%;
  padding: 0 24px 72px;
}

.ut-local-head,
.ut-local-body {
  width: min(900px, 100%);
  margin: 0 auto;
}

.ut-local-head {
  margin-bottom: 16px;
}

.ut-local-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ut-keep {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.ut-keep-words {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ut-keep-title {
  color: var(--text);
  font: 600 15px/20px var(--font);
}

.ut-keep-note {
  color: var(--text-muted);
  font: 400 13px/18px var(--font);
  text-wrap: balance;
}

/* A page passed from "Read in Wovia": where it came from, or why it could not be read. */
.ut-local .passed-card {
  gap: 4px;
  margin: 0;
  padding: 14px 16px;
}

.ut-local .passed-card.is-problem {
  border-color: transparent;
  background: var(--danger-tint);
}

.ut-local .passed-label {
  color: var(--success);
  letter-spacing: 0;
  text-transform: none;
}

.ut-local .passed-title {
  color: var(--text);
}

.ut-local .hint {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
  text-wrap: balance;
}

.ut-local .reader-form {
  gap: 16px;
}

.ut-local .field-label {
  margin: 0;
}

.ut-local .reader-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 380px;
  padding: 15px 17px;
  border: 1px solid var(--field-border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: 400 17px/1.9 var(--font);
  resize: vertical;
}

.ut-local .reader-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.ut-local .reader-input::placeholder {
  color: var(--text-tertiary);
}

.ut-local .reader-actions {
  justify-content: flex-start;
  gap: 4px 10px;
}

.reader-language {
  color: var(--text-muted);
  font: 500 13px/18px var(--font);
  white-space: nowrap;
}

.reader-language-change {
  padding: 0 4px;
  font-size: 13px;
}

.reader-submit {
  margin-left: auto;
  padding: 0 24px;
}

/* Reading on this device: the text on a card, the chosen word in the action blue. */
.ut-local .reader-toolbar {
  margin-bottom: 0;
}

.ut-local .reader-text {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
}

.ut-local .word:hover {
  background: var(--tonal);
}

.ut-local .word.is-selected {
  background: var(--accent);
  color: var(--on-accent);
}

.ut-local .word-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--elevation-1);
}

.ut-local .card-label {
  color: var(--text-label);
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 900px) {
  .ut-local .reader-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .ut-local {
    padding: 0 16px 56px;
  }

  .ut-keep {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .ut-keep-words {
    flex-basis: calc(100% - 62px);
  }

  .ut-keep-sign-in {
    width: 100%;
  }

  .ut-local .reader-input {
    min-height: 300px;
  }

  .reader-submit {
    width: 100%;
    margin-left: 0;
  }

  .ut-local .reader-text {
    padding: 16px;
  }
}
