/* ==========================================================================
   English name -> Chinese name translator
   Layers on tool-page.css / results.css. Palette follows the site:
   ink #17304f, muted #60758a, gold #c9a45e, line #c8dfe8, page #eef7fb.
   ========================================================================== */

.nt-page .tool-page-intro h1 em {
  font-style: normal;
  color: #8d6728;
}

.nt-shell {
  max-width: 900px;
  margin: 0 auto;
}

.nt-form {
  background: #fbfdff;
  border: 1px solid #c8dfe8;
  border-radius: 20px;
  padding: 26px 26px 22px;
  box-shadow: 0 16px 40px #17304f10;
}

.nt-field {
  display: block;
  margin: 0 0 6px;
}

.nt-field > span {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a97a3;
  margin: 0 0 8px;
}

.nt-field input {
  width: 100%;
  box-sizing: border-box;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 3.4vw, 28px);
  color: #17304f;
  background: #fff;
  border: 1px solid #c8dfe8;
  border-radius: 12px;
  padding: 14px 16px;
  letter-spacing: .01em;
}

.nt-field input:focus {
  outline: none;
  border-color: #c9a45e;
  box-shadow: 0 0 0 4px rgba(201, 164, 94, .16);
}

.nt-field input::placeholder {
  color: #b6c2cc;
  font-size: .8em;
}

.nt-pref {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  border: none;
  padding: 0;
}

.nt-pref input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nt-pref span {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #cdd9e2;
  border-radius: 999px;
  font-size: 13.5px;
  color: #3d566b;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
}

.nt-pref span small {
  display: block;
  font-size: 11px;
  color: #8a97a3;
}

.nt-pref input:checked + span {
  background: #17304f;
  border-color: #17304f;
  color: #fff;
}

.nt-pref input:checked + span small {
  color: #c6d5e2;
}

.nt-pref input:focus-visible + span {
  outline: 2px solid #c9a45e;
  outline-offset: 2px;
}

.nt-go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 20px 0 0;
}

.nt-go button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fbfdff;
  background: #17304f;
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  cursor: pointer;
  transition: background .15s;
}

.nt-go button:hover {
  background: #22456e;
}

.nt-hint {
  font-size: 12.5px;
  color: #8a97a3;
}

.nt-suggest {
  margin: 14px 0 0;
  font-size: 13px;
  color: #7a8a97;
}

.nt-suggest button {
  font: inherit;
  color: #8d6728;
  background: none;
  border: none;
  border-bottom: 1px dotted #c9a45e;
  padding: 0 1px;
  margin: 0 2px;
  cursor: pointer;
}

.nt-empty {
  margin: 26px auto 0;
  max-width: 900px;
  border: 1px dashed #c8dfe8;
  border-radius: 18px;
  padding: 22px 24px;
  color: #60758a;
  font-size: 14px;
  line-height: 1.7;
  background: #f9fcfe;
}

.nt-empty b {
  color: #17304f;
}

/* ------------------------------------------------------------------ result */
.nt-result {
  margin: 30px auto 0;
  max-width: 900px;
}

.nt-result[hidden] {
  display: none;
}

.nt-lede {
  text-align: center;
  margin: 0 0 26px;
}

.nt-lede .eyebrow {
  margin-bottom: 6px;
}

.nt-big {
  font-family: Georgia, serif;
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1.15;
  color: #17304f;
  margin: 0;
  letter-spacing: .01em;
}

.nt-big .arrow {
  color: #c9a45e;
  font-size: .7em;
  padding: 0 .18em;
}

.nt-big .zh {
  font-family: "Kaiti SC", KaiTi, STKaiti, "Songti SC", "Noto Serif SC", serif;
  letter-spacing: .06em;
}

.nt-big-py {
  margin: 8px 0 0;
  color: #8a97a3;
  font-size: 15px;
  letter-spacing: .08em;
}

.nt-block {
  background: #fbfdff;
  border: 1px solid #c8dfe8;
  border-radius: 18px;
  padding: 22px 24px;
  margin: 0 0 16px;
}

.nt-block h3 {
  font-family: Georgia, serif;
  font-size: 19px;
  margin: 0 0 4px;
  color: #17304f;
}

.nt-block h3 .num {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: #17304f;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  vertical-align: 2px;
  margin-right: 8px;
}

.nt-block .sub {
  font-size: 13px;
  color: #8a97a3;
  margin: 0 0 14px;
}

.nt-facts {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 9px 16px;
  margin: 14px 0 0;
  font-size: 14.5px;
}

.nt-facts dt {
  color: #8a97a3;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-top: 3px;
}

.nt-facts dd {
  margin: 0;
  color: #274156;
  line-height: 1.55;
}

.nt-facts dd b {
  color: #17304f;
}

.nt-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nt-tag {
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef4f8;
  color: #4a6b84;
}

.nt-el-row {
  display: flex;
  gap: 6px;
  margin: 0;
}

.nt-el-pip {
  width: 34px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #dbe6ee;
  background: #f4f9fc;
  color: #9aacb9;
  font-size: 13px;
  display: grid;
  place-items: center;
  font-family: "Kaiti SC", KaiTi, "Noto Serif SC", serif;
}

.nt-el-pip.on {
  border-color: #c9a45e;
  background: #f8f1e2;
  color: #8d6728;
  font-weight: 700;
}

.nt-el-name {
  display: block;
  font-size: 12px;
  color: #8a97a3;
  margin: 6px 0 0;
}

.nt-note {
  font-size: 14px;
  line-height: 1.7;
  color: #60758a;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 2px solid #e3d4b6;
  background: #fdfaf3;
  border-radius: 0 8px 8px 0;
}

/* ------------------------------------------------------------------- brush */
.nt-brush {
  padding: 22px 24px 18px;
}

.brush-stage {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  padding: 30px 16px 24px;
  border-radius: 14px;
  border: 1px solid #e0d3ba;
  background:
    radial-gradient(120% 90% at 22% 8%, #fdfaf3 0%, #f6efe0 55%, #efe5cf 100%);
  overflow: hidden;
  min-height: 230px;
}

.brush-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(92deg, rgba(150, 128, 92, .05) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(2deg, rgba(150, 128, 92, .05) 0 1px, transparent 1px 6px);
  opacity: .9;
}

.brush-char {
  position: relative;
  z-index: 1;
  width: 186px;
  text-align: center;
}

.brush-cell {
  position: relative;
  width: 186px;
  height: 186px;
  border: 1px solid #d6c5a6;
  background: rgba(255, 253, 247, .55);
  border-radius: 3px;
  box-shadow: inset 0 0 30px rgba(180, 158, 120, .12);
}

.brush-cell .g-h,
.brush-cell .g-v {
  position: absolute;
  pointer-events: none;
}

.brush-cell .g-h {
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed rgba(180, 160, 120, .5);
}

.brush-cell .g-v {
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px dashed rgba(180, 160, 120, .5);
}

.brush-target {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.brush-target svg {
  display: block;
  filter: drop-shadow(0 1px 0 rgba(35, 30, 24, .18));
}

.brush-fallback {
  font-family: "Kaiti SC", KaiTi, STKaiti, "Songti SC", "Noto Serif SC", serif;
  font-size: 120px;
  line-height: 1;
  color: #211d19;
  opacity: .9;
}

.brush-py {
  margin: 10px 0 2px;
  font-size: 13px;
  letter-spacing: .1em;
  color: #8d6728;
  font-family: Georgia, serif;
}

.brush-gloss {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #6b7c8b;
  min-height: 34px;
}

.brush-el {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a08a63;
}

.brush-seal {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  border: 2px solid #b23a2f;
  border-radius: 5px;
  color: #b23a2f;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  font-family: "Kaiti SC", KaiTi, "Noto Serif SC", serif;
  opacity: 0;
  transform: rotate(-8deg) scale(.55);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, 1.4, .5, 1);
  pointer-events: none;
}

.brush-char.is-done .brush-seal {
  opacity: .88;
  transform: rotate(-8deg) scale(1);
}

.brush-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
}

.brush-controls button {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #17304f;
  background: #fff;
  border: 1px solid #c8dfe8;
  border-radius: 9px;
  padding: 9px 16px;
  cursor: pointer;
  transition: all .15s;
}

.brush-controls button:hover {
  border-color: #c9a45e;
}

.brush-controls button.primary {
  background: #17304f;
  color: #fff;
  border-color: #17304f;
}

.brush-controls button.primary:hover {
  background: #22456e;
}

.brush-meta {
  font-size: 12.5px;
  color: #8a97a3;
  margin-left: auto;
}

.brush-meta b {
  color: #8d6728;
  font-weight: 600;
}

/* -------------------------------------------------------------- alternative */
.nt-alt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 0;
}

@media (max-width: 680px) {
  .nt-alt-grid {
    grid-template-columns: 1fr;
  }
}

.nt-alt {
  border: 1px solid #dbe6ee;
  border-radius: 14px;
  padding: 16px 18px;
  background: #fdfefe;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nt-alt .zh {
  font-family: "Kaiti SC", KaiTi, STKaiti, "Songti SC", "Noto Serif SC", serif;
  font-size: 30px;
  line-height: 1.1;
  color: #17304f;
  letter-spacing: .05em;
}

.nt-alt .py {
  font-size: 12.5px;
  color: #8a97a3;
  letter-spacing: .06em;
}

.nt-alt .mode {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8d6728;
}

.nt-alt p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #60758a;
}

.nt-alt button {
  align-self: flex-start;
  margin-top: 8px;
  font: inherit;
  font-size: 12.5px;
  color: #17304f;
  background: #eef4f8;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
}

.nt-alt button:hover {
  background: #e2eef6;
}

/* -------------------------------------------------------------- name table */
.nt-table-wrap {
  max-width: 900px;
  margin: 0 auto 40px;
}

.nt-table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}

.nt-table-tools input {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  padding: 10px 13px;
  border: 1px solid #c8dfe8;
  border-radius: 9px;
  background: #fff;
  color: #17304f;
}

.nt-table-tools input:focus {
  outline: none;
  border-color: #c9a45e;
  box-shadow: 0 0 0 3px rgba(201, 164, 94, .15);
}

.nt-table-tools span {
  font-size: 12.5px;
  color: #8a97a3;
}

.nt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.nt-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a97a3;
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid #c8dfe8;
}

.nt-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #e4eef4;
  color: #42566a;
  vertical-align: top;
  line-height: 1.5;
}

.nt-table tr:hover td {
  background: #f7fbfd;
}

.nt-table .c-name {
  color: #17304f;
  font-weight: 600;
  white-space: nowrap;
}

.nt-table .c-zh {
  font-family: "Kaiti SC", KaiTi, STKaiti, "Songti SC", "Noto Serif SC", serif;
  font-size: 19px;
  color: #17304f;
  white-space: nowrap;
  letter-spacing: .05em;
}

.nt-table .c-zh small {
  display: block;
  font-family: Georgia, serif;
  font-size: 11px;
  color: #9aacb9;
  letter-spacing: .06em;
}

.nt-table .c-mean {
  font-size: 12.5px;
  color: #7a8a97;
}

.nt-table .c-go {
  text-align: right;
  white-space: nowrap;
}

.nt-table .c-go button {
  font: inherit;
  font-size: 12px;
  color: #8d6728;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
}

.nt-table .c-go button:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------- explainer */
.nt-cross-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0 0;
}

@media (max-width: 780px) {
  .nt-cross-grid {
    grid-template-columns: 1fr;
  }
}

.nt-cross-card {
  border: 1px solid #dbe6ee;
  border-radius: 14px;
  padding: 18px;
  background: #fdfefe;
}

.nt-cross-card .glyph {
  font-family: "Kaiti SC", KaiTi, STKaiti, "Songti SC", "Noto Serif SC", serif;
  font-size: 28px;
  color: #c9a45e;
  line-height: 1;
}

.nt-cross-card h3 {
  font-family: Georgia, serif;
  font-size: 16px;
  margin: 8px 0 6px;
  color: #17304f;
}

.nt-cross-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #60758a;
}

@media (max-width: 700px) {
  .nt-form {
    padding: 20px 18px;
  }

  .nt-big {
    font-size: clamp(23px, 7vw, 34px);
  }

  .nt-big .zh {
    letter-spacing: .03em;
  }

  .nt-block {
    padding: 18px 16px;
  }

  .nt-facts {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .nt-facts dt {
    padding-top: 8px;
  }

  .brush-char,
  .brush-cell {
    width: 132px;
  }

  .brush-cell {
    height: 132px;
  }

  .brush-fallback {
    font-size: 84px;
  }

  .brush-stage {
    gap: 16px;
    padding: 20px 10px 16px;
  }

  .brush-gloss {
    font-size: 11.5px;
  }

  .nt-table .c-mean,
  .nt-table th.c-mean-h {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brush-seal {
    transition: none;
  }
}

/* ==========================================================================
   Three-option cards, scoring, surname note (2026-10-24 redesign)
   ========================================================================== */

.nt-big-approx {
  margin: 4px 0 0;
  font-size: 14px;
  color: #60758a;
  font-style: italic;
}

.nt-name-parts {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
  color: #17304f;
}
.nt-name-parts .np-part b {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 20px;
  margin-right: 6px;
}
.nt-name-parts .np-part small {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #60758a;
}

.nt-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 4px 0 18px;
}

.nt-opt {
  border: 1.5px solid #c8dfe8;
  border-radius: 16px;
  background: #fbfdff;
  padding: 16px 16px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.nt-opt:hover { border-color: #c9a45e; }
.nt-opt.is-chosen {
  border-color: #c9a45e;
  box-shadow: 0 10px 28px #c9a45e26;
  transform: translateY(-2px);
  cursor: default;
}
.nt-opt-mode {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8d6728;
  font-weight: 700;
}
.nt-opt-mode em {
  font-style: normal;
  color: #17304f;
  margin-left: 6px;
  font-family: "Noto Serif SC", Georgia, serif;
  letter-spacing: .3em;
}
.nt-opt-hanzi {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
  color: #17304f;
}
.nt-opt-py { font-size: 14px; color: #17304f; font-weight: 600; }
.nt-opt-approx { font-size: 12.5px; color: #60758a; font-style: italic; }

.nt-nat {
  display: inline-block;
  font-size: 12px;
  border-radius: 999px;
  padding: 3px 10px;
  margin: 2px 0 2px;
  border: 1px solid transparent;
  align-self: flex-start;
}
.nt-nat b { margin-right: 4px; }
.nt-nat.nat-natural { background: #eaf6ee; border-color: #9ecfae; color: #23663a; }
.nt-nat.nat-poetic  { background: #f3eefa; border-color: #c3aee6; color: #5b3f8f; }
.nt-nat.nat-accept  { background: #fdf3e3; border-color: #e2c68f; color: #7a5a1c; }
.nt-nat.nat-unusual { background: #f4f6f8; border-color: #c3ccd4; color: #5a6b7a; }

.nt-opt-mean { margin: 2px 0 4px; font-size: 13.5px; line-height: 1.55; color: #33506b; }

.nt-scores {
  border-top: 1px dashed #c8dfe8;
  padding-top: 10px;
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: center;
}
.nt-total {
  font-family: Georgia, serif;
  font-size: 30px;
  color: #17304f;
  line-height: 1;
}
.nt-total small { font-size: 12px; color: #60758a; }
.nt-score-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}
.nt-score-row > span:first-child {
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #60758a;
}
.nt-score-bar {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #e2edf3;
  overflow: hidden;
}
.nt-score-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #7fa8c9, #c9a45e);
}

.nt-opt-use {
  margin-top: 8px;
  border: 1px solid #c8dfe8;
  background: #fff;
  color: #17304f;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 13px;
  cursor: pointer;
}
.nt-opt.is-chosen .nt-opt-use {
  background: #f3ede0;
  border-color: #c9a45e;
  color: #8d6728;
  cursor: default;
}

.brush-char.is-surname .brush-cell { border-color: #c9a45e; }
.brush-char.is-surname .brush-role { color: #8d6728; }
.brush-role {
  display: block;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #60758a;
  text-align: center;
  margin-bottom: 6px;
}

@media(max-width:700px) {
  .nt-opt-grid { grid-template-columns: 1fr; }
  .nt-opt-hanzi { font-size: 30px; }
}

/* ==========================================================================
   Actions row, per-card reasons, shuffle (2026-10-24 review pass)
   ========================================================================== */

.nt-actions {
  margin: 14px 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.nt-actions button {
  border: 1px solid #c8dfe8;
  background: #fff;
  color: #17304f;
  border-radius: 10px;
  padding: 7px 13px;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.nt-actions button:hover { border-color: #c9a45e; background: #fdf9ef; }
.nt-actions button[hidden] { display: none; }
.nt-actions-hint {
  font-size: 12px;
  color: #60758a;
  font-style: italic;
}

.nt-opt-why {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #8d6728;
}
.nt-opt-why::before { content: "Why: "; font-weight: 700; letter-spacing: .02em; }

.nt-opt-another {
  margin-top: 8px;
  border: none;
  background: none;
  color: #60758a;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px 0;
  align-self: flex-start;
}
.nt-opt-another:hover { color: #8d6728; }

/* ==========================================================================
   Traditional line, save button, saved chips (2026-10-24 retirement pass)
   ========================================================================== */

.nt-big-trad {
  margin: 6px 0 0;
  font-size: 14px;
  color: #60758a;
}
.nt-big-trad b {
  font-family: "Noto Serif SC", Georgia, serif;
  color: #17304f;
  font-size: 17px;
  letter-spacing: .1em;
}

.nt-opt-trad {
  font-size: 12px;
  color: #60758a;
  letter-spacing: .06em;
}
.nt-opt-trad::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border: 1px solid #c8dfe8;
  border-radius: 2px;
  vertical-align: 1px;
}

.nt-actions button.is-saved {
  background: #fdf3e3;
  border-color: #e2c68f;
  color: #7a5a1c;
}

.nt-saved {
  margin: 12px 0 4px;
  border: 1px dashed #c8dfe8;
  border-radius: 14px;
  background: #fbfdff;
  padding: 12px 14px;
}
.nt-saved h4 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #60758a;
}
.nt-saved h4 small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-style: italic;
  margin-left: 6px;
}
.nt-saved-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nt-saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #c8dfe8;
  border-radius: 999px;
  background: #fff;
  padding: 5px 7px 5px 13px;
  font-size: 13.5px;
}
.nt-saved-chip b {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 15.5px;
  color: #17304f;
}
.nt-saved-chip i { color: #60758a; font-style: normal; }
.nt-saved-chip button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: #60758a;
  padding: 2px 4px;
  border-radius: 6px;
  line-height: 1;
}
.nt-saved-chip button:hover { background: #f0f5f8; color: #17304f; }

/* ---------------- BaZi five-element weighting ---------------- */
.nt-wx-flag {
  margin: 10px 0 0;
  font-size: 14px;
  color: #4a5d70;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.nt-wx-flag[hidden] { display: none; }
.nt-wx-badge {
  display: inline-block;
  border: 1px solid #e2c68f;
  background: #fdf3e3;
  color: #7a5a1c;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 3px 10px;
}
.nt-wx-flag button {
  border: none;
  background: none;
  color: #60758a;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
}
.nt-wx-flag button:hover { color: #17304f; }
.nt-el-match {
  display: block;
  margin: 4px 0 0;
  font-size: 13px;
  color: #8a5a1c;
  background: #fdf3e3;
  border: 1px solid #ecd9b0;
  border-radius: 10px;
  padding: 6px 10px;
}
.nt-wx-personal {
  margin: 14px 0 0;
  border: 1px solid #e2c68f;
  background: #fdf9ef;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a4034;
}
.nt-wx-personal .zh {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 16px;
  color: #17304f;
}
.nt-wx-personal .nt-wx-clear {
  border: 1px solid #d8c9a8;
  background: #fff;
  color: #7a5a1c;
  border-radius: 999px;
  font-size: 13px;
  padding: 4px 12px;
  cursor: pointer;
  margin-left: 4px;
}
.nt-wx-personal .nt-wx-clear:hover { background: #fdf3e3; }
.nt-wx-personal a { color: #17304f; font-weight: 600; text-decoration: underline; }
.nt-bazi-cta {
  margin: 14px 0 0;
  border: 1px dashed #c8dfe8;
  background: #fbfdff;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #4a5d70;
}
.nt-bazi-cta[hidden] { display: none; }
.nt-bazi-cta a {
  color: #17304f;
  font-weight: 700;
  text-decoration: underline;
  margin: 0 2px;
}
.nt-bazi-cta small {
  display: block;
  margin-top: 5px;
  color: #60758a;
  font-size: 13px;
}
.nt-wx-help {
  margin: 14px 0 0;
  color: #4a5d70;
  font-size: 14px;
  line-height: 1.65;
}
.nt-wx-help summary {
  cursor: pointer;
  color: #17304f;
  font-weight: 700;
}
.nt-wx-help p { margin: 8px 0 0; }
.nt-name-drawer {
  max-width: 900px;
  margin: 36px auto 0;
  border: 1px solid #c8dfe8;
  border-radius: 16px;
  background: rgba(255,255,255,.32);
  overflow: hidden;
}
.nt-name-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 18px 22px;
  color: #17304f;
  list-style: none;
}
.nt-name-drawer > summary::-webkit-details-marker { display: none; }
.nt-name-drawer > summary span { display: grid; gap: 4px; }
.nt-name-drawer > summary b { font-family: Georgia, serif; font-size: 1.35rem; }
.nt-name-drawer > summary small { color: #60758a; font-size: 13px; font-weight: 400; }
.nt-name-drawer > summary i { font-style: normal; font-size: 1.55rem; color: #a06a16; }
.nt-name-drawer[open] > summary { border-bottom: 1px solid #d9e8ee; }
.nt-name-drawer[open] > summary i { transform: rotate(45deg); }
.nt-drawer-intro { margin: 0; padding: 0 22px; }
.nt-drawer-intro p { margin: 14px 0 6px; }
.nt-name-drawer .nt-table-tools, .nt-name-drawer .nt-table { margin-left: 22px; margin-right: 22px; width: calc(100% - 44px); }
@media (max-width: 700px) {
  .nt-name-drawer > summary { padding: 16px; }
  .nt-name-drawer .nt-table-tools, .nt-name-drawer .nt-table { margin-left: 10px; margin-right: 10px; width: calc(100% - 20px); }
  .nt-drawer-intro { padding: 0 16px; }
}

/* --- 2026-10-24: five-element bars carried from the FE calculator --- */
.nt-wx-bars { margin: 0 0 10px; }
.nt-wx-bar-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.nt-wx-bar-row.is-weak b { color: #8a5a1c; }
.nt-wx-bar-zh { font-family: "Noto Serif SC", Georgia, serif; font-size: 15px; width: 18px; text-align: center; flex: none; }
.nt-wx-bar { flex: 1; height: 9px; background: #f1ece1; border-radius: 999px; overflow: hidden; }
.nt-wx-bar i { display: block; height: 100%; border-radius: 999px; }
.nt-wx-bar-row b { font-size: 12.5px; width: 38px; text-align: right; flex: none; color: #4a4034; }
.nt-wx-bar-row small { flex: none; font-size: 11.5px; color: #8a5a1c; font-weight: 600; }
.nt-wx-dm { margin: 8px 0 0; font-size: 13px; color: #7a6f5d; }

/* --- 2026-10-25: one-answer-at-a-time result logic --- */
.nt-mode-label { margin: 6px 0 0; font-size: 14px; color: #6b7a8a; }
.nt-basedon { margin: 8px 0 0; font-size: 13.5px; color: #6b7a8a; }
.nt-details-intro { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: #6b7a8a; }
.nt-basedon b { color: #17304f; }
.nt-basedon i { font-style: normal; color: #a0abb5; }
.nt-initial-warn { border: 1px solid #e8c8a0; background: #fdf6ec; border-radius: 12px; padding: 14px 18px; font-size: 14.5px; line-height: 1.6; color: #6b4a1c; }
.nt-initial-warn b { color: #8a5a1c; }
.nt-mode-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.nt-mode-picker-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a97a3; margin-right: 4px; }
.nt-pill { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 1.5px solid var(--line, #d8e2ea); background: #fff; border-radius: 12px; padding: 8px 14px; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.nt-pill b { font-size: 13.5px; font-weight: 600; color: #17304f; }
.nt-pill i { font-style: normal; font-size: 11.5px; color: #8a97a3; }
.nt-pill:hover { border-color: #c9a45e; }
.nt-pill.is-on { border-color: #c9a45e; background: #fdf9ef; box-shadow: 0 0 0 3px rgba(201,164,94,.12); }
.nt-pill.is-on i { color: #8a5a1c; }
.nt-why-name { border: 1px solid #e2c68f; background: #fdf9ef; border-radius: 14px; padding: 16px 18px; margin: 0 0 14px; }
.nt-why-name h4 { margin: 0 0 8px; font-size: 15px; color: #17304f; }
.nt-why-name p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.7; color: #4a4034; }
.nt-why-name p:last-child { margin-bottom: 0; }
.nt-vary { border: none; background: none; color: #8a5a1c; font-weight: 600; cursor: pointer; text-decoration: underline; font-size: 13.5px; padding: 0; }
.nt-choose-details { border: 1px solid var(--line, #d8e2ea); border-radius: 14px; background: #fff; padding: 0; margin: 0 0 16px; overflow: hidden; }
.nt-choose-details summary { cursor: pointer; padding: 12px 18px; font-size: 14px; font-weight: 600; color: #17304f; }
.nt-choose-details[open] summary { border-bottom: 1px solid var(--line, #e4ecf2); }
.nt-choose-dl { margin: 0; padding: 10px 18px 14px; }
.nt-choose-dl dt { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #8a97a3; margin: 10px 0 4px; }
.nt-choose-dl dd { margin: 0; font-size: 14.5px; color: #17304f; }
.nt-choose-dl dd i { color: #6b7a8a; font-style: normal; font-size: 13.5px; }
.nt-gloss-row { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; }
.nt-gloss-ch { font-family: "Noto Serif SC", Georgia, serif; font-size: 19px; color: #17304f; width: 26px; flex: none; }
.nt-gloss-row b { font-size: 13.5px; color: #4a4034; flex: none; }
.nt-gloss-row span { font-size: 13.5px; color: #8a97a3; }
.nt-more { margin: 4px 0 0; }
.nt-more-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a97a3; }
.nt-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.nt-more-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid var(--line, #d8e2ea); border-radius: 14px; background: #fff; padding: 14px 16px; cursor: pointer; text-align: left; transition: border-color .15s; }
.nt-more-card:hover { border-color: #c9a45e; }
.nt-more-mode { font-size: 12.5px; color: #6b7a8a; }
.nt-more-mode em { font-style: normal; color: #8a97a3; }
.nt-more-hanzi { font-family: "Noto Serif SC", Georgia, serif; font-size: 21px; color: #17304f; }
.nt-more-py { font-size: 13px; color: #8a97a3; }
.nt-more-hint { display: block; font-size: 12.5px; line-height: 1.5; color: #6b7a8a; margin: 2px 0 0; }
.nt-more-go { font-size: 13px; font-weight: 600; color: #8d6728; }
