/* Copyright (c) 2025 uchisen LLC to Present. All rights reserved.
 *
 * V1.5's additions to V1's stylesheets (docs/old-uchisen-audit.md §4.4 phase 3).
 * Every prime is text since 2026-09-26, some of them Private Use code points or characters Noto Sans JP doesn't draw.
 * The uchisen Primes face (Black, OFL 1.1, derived from Noto Sans JP — tools/strokes/build_prime_font.py) draws them,
 * as a fallback after Noto, the way the V2 app's web build does.
 */
@font-face {
  font-family: 'uchisenPrimes';
  src: url('/fonts/uchisenPrimes_900Black.ttf') format('truetype');
  font-display: swap;
}
html {
  font-family: 'Noto Sans JP', 'uchisenPrimes', sans-serif;
}
.v15_discussion_post {
  margin: 10px 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
}
.v15_discussion_post .v15_post_author {
  font-weight: 900;
  margin-bottom: 4px;
}
.v15_note {
  font-size: 12px;
  opacity: 0.7;
}
/* vocab.php's example sentences (V1 had none): one under another, ruby above the kanji. */
.v15_sentences {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-align: left;
}
.v15_sentence_ja {
  font-size: 18px;
  line-height: 2;
}
.v15_sentence_ja rt {
  font-size: 10px;
}
/* Phase 4: the sign-in pages' small buttons (a form each, so they carry the CSRF token) drawn as V1's quiet links. */
.v15_auth_links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}
.v15_auth_links form {
  margin: 0;
  padding: 0;
  width: auto;
  box-shadow: none;
  background: none;
}
.v15_link_button,
.v15_link_button:hover {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font: inherit;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: inherit !important;
  opacity: 0.8;
  cursor: pointer;
  text-decoration: underline;
}
#login_form #code {
  width: 250px;
  box-sizing: border-box;
}
.v15_field_error {
  color: #d50000;
  font-size: 12px;
  min-height: 0;
}
.v15_remember {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center;
  gap: 10px;
  width: 250px;
  max-width: 250px !important;
  margin: 0 auto 12px !important;
  padding: 0 !important;
}
.v15_remember p {
  width: auto !important;
  margin: 0 !important;
}
/* Continue with Apple / Google: V1's buttons, now each a form posting to /oauthstart. */
form.v15_oauth {
  margin: 0;
  padding: 0;
  width: auto;
  box-shadow: none;
  background: none;
  display: flex;
  justify-content: center;
}
form.v15_oauth button {
  border: 0;
  font-family: inherit;
}

/* Phase 6: the comment box under an item's Discussion, and V2's interval under each review grade. */
.v15_comment_form { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.v15_comment_form textarea { width: 100%; box-sizing: border-box; }
.v15_comment_form .submit_btn { align-self: flex-end; }
.answer_button .v15_interval { font-size: 0.75em; opacity: 0.8; white-space: nowrap; }

/* Phase 6b: the Studio's message and remix-credit lines; V1's plan buttons as buttons in a form again. */
.studio_message { margin: 10px 0; font-size: 14px; color: #b3261e; }
#studio_confirm { color: inherit; display: flex; flex-direction: column; gap: 8px; }
#studio_confirm.hidden, .studio_message.hidden { display: none; }
#studio_credits, #studio_refusal { min-height: 0; }
.sub_wrapper form { margin: 0; display: flex; }
.sub_wrapper button.sub_item { border: 0; font-family: inherit; cursor: pointer; width: 100%; }
.sub_wrapper button.sub_item[disabled] { cursor: default; }
