* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 18px; line-height: 1.45;
  background: #f3f1ec; color: #1f2328; }
button, input, textarea, select { font: inherit; color: inherit; }
[data-a] { cursor: pointer; }
h2 { font-size: 22px; margin: 4px 0 10px; line-height: 1.25; }
h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: #6b6f76; margin: 22px 0 8px; }
p { margin: 8px 0; }
.wrap { max-width: 760px; margin: 0 auto; padding: 14px 14px 40px; }
.top { position: -webkit-sticky; position: sticky; top: 0; z-index: 5; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  background: #1f3a5f; color: #fff; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); }
.top .ttl { -webkit-flex: 1; flex: 1; text-align: center; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sp, .top .back { width: 92px; }
.top .back { background: none; border: 0; color: #fff; text-align: left; padding: 6px 0; font-size: 17px; }
.card { background: #fff; border-radius: 14px; padding: 16px 18px; margin: 12px 0; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.card.main { border-top: 4px solid #e0763a; }
.card.soft { background: #fff7e8; }
.lbl { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #8a5a2b; font-weight: 600; }
.muted { color: #6b6f76; font-size: 15px; }
.tip { color: #6b6f76; font-size: 14px; margin-top: 10px; }
.prompt { font-size: 24px; font-weight: 600; margin: 8px 0 12px; }
.prompt.sm { font-size: 18px; font-weight: 500; }
.rule { background: #f6f8fb; border-left: 4px solid #1f3a5f; padding: 10px 12px; border-radius: 6px; margin: 8px 0; }
input[type=text], input[type=search], textarea, select { width: 100%; border: 2px solid #d5d8dd; border-radius: 10px; padding: 12px; font-size: 20px; background: #fff;
  -webkit-appearance: none; appearance: none; }
textarea { font-size: 18px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: #1f3a5f; }
input:disabled, textarea:disabled { background: #f4f4f4; color: #444; }
label { display: block; margin: 12px 0 4px; font-weight: 600; }
.btns { margin-top: 10px; }
.btns button, .item, .tile, .tab { -webkit-appearance: none; }
.btns button { min-height: 48px; padding: 10px 16px; margin: 6px 8px 0 0; border-radius: 10px; border: 2px solid #1f3a5f; background: #fff; color: #1f3a5f; font-weight: 600; }
.btns button.primary { background: #1f3a5f; color: #fff; }
.btns button.big { width: 100%; font-size: 20px; min-height: 56px; margin-right: 0; }
.btns button.ghost { border-color: #c9ccd1; color: #6b6f76; }
.btns button.ghost.on { background: #eceef1; }
.say { border: 0; background: #eef2f7; border-radius: 10px; min-width: 46px; height: 46px; font-size: 22px; margin-right: 6px; vertical-align: middle; }
.prompt .say { min-width: 64px; height: 56px; font-size: 26px; }
.mini { border: 1px solid #c9ccd1; background: #fff; border-radius: 8px; font-size: 13px; padding: 3px 8px; margin-left: 6px; }
.hint { background: #fffbe6; border: 1px solid #f0dc8c; border-radius: 10px; padding: 8px 12px; margin-top: 10px; }
.fb { border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.fb.ok { background: #e8f6ec; border: 1px solid #a7dbb5; }
.fb.bad { background: #fdeeee; border: 1px solid #f0b8b8; }
.fb.note2 { background: #fff5e6; border: 1px solid #f2c98a; }
.fb .note { color: #8a5a2b; margin-top: 4px; }
.ansl { margin-top: 6px; }
.wrote { margin: 4px 0; }
.tk.bad { color: #c62828; text-decoration: underline wavy #c62828; }
.eb { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e0b4b4; }
.rl { color: #1f3a5f; font-weight: 600; margin-top: 4px; }
.chips { margin: 4px 0 8px; }
.chip { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 20px; background: #e6e8ec; color: #555; margin: 0 6px 6px 0; }
.chip.cur { background: #1f3a5f; color: #fff; }
.chip.past { background: #cfe8d6; color: #24613a; }
.bar { height: 6px; background: #e1e3e7; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #e0763a; }
.ex { margin: 8px 0; }
.exl { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.exl:last-child { border-bottom: 0; }
.en { font-weight: 600; }
.ru { color: #6b6f76; font-size: 15px; }
.row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; }
.row button { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 2px solid #1f3a5f; background: #fff; color: #1f3a5f; font-weight: 600; margin-left: 10px; }
.row2 { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.row2 span:first-child { padding-right: 10px; }
.grid { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 4px -5px; }
.tile { width: calc(33.33% - 10px); margin: 5px; background: #fff; border: 0; border-radius: 14px; padding: 14px 10px; text-align: left; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tile .ic { font-size: 26px; display: block; }
.tile b { display: block; margin-top: 4px; }
.tile span { color: #6b6f76; font-size: 13px; }
@media (max-width: 520px) { .tile { width: calc(50% - 10px); } .prompt { font-size: 21px; } body { font-size: 17px; } }
.item { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between;
  width: 100%; text-align: left; background: #fff; border: 0; border-radius: 12px; padding: 12px 14px; margin: 8px 0; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.card .item { background: #f6f7f9; box-shadow: none; }
.item .ic { font-size: 26px; margin-right: 12px; }
.item > div { -webkit-flex: 1; flex: 1; }
.item.off { opacity: .55; }
.gs, .st { font-size: 12px; padding: 3px 9px; border-radius: 12px; white-space: nowrap; background: #e6e8ec; color: #555; }
.gs-progress, .st-recognize { background: #fff1d6; color: #8a5a00; }
.gs-done, .st-use { background: #d6f0de; color: #1d6b37; }
.st-know { background: #dbe7f7; color: #1f3a5f; }
.foot { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; font-size: 15px; color: #444; margin-top: 10px; }
.foot span { margin: 0 16px 6px 0; }
.stats3, .nums { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 8px -4px; }
.stats3 div, .nums div { -webkit-flex: 1; flex: 1; min-width: 100px; background: #f6f7f9; border-radius: 10px; margin: 4px; padding: 10px; text-align: center; }
.nums div { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.stats3 b, .nums b { display: block; font-size: 24px; }
.stats3 span, .nums span { font-size: 13px; color: #6b6f76; }
.tbl { width: 100%; border-collapse: collapse; margin: 6px 0; }
.tbl td, .tbl th { padding: 6px 4px; border-bottom: 1px solid #f0f0f0; text-align: left; }
.tbl th { font-size: 13px; color: #6b6f76; }
.tabs { margin-bottom: 8px; }
.tab { border: 1px solid #c9ccd1; background: #fff; border-radius: 20px; padding: 6px 12px; margin: 0 6px 6px 0; font-size: 15px; }
.tab.on { background: #1f3a5f; color: #fff; border-color: #1f3a5f; }
.tab span { opacity: .7; }
.wrow { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; background: #fff; border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.wm { -webkit-flex: 1; flex: 1; }
.wr { text-align: right; }
.chat { max-height: 50vh; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; }
.msg { padding: 10px 12px; border-radius: 14px; margin: 8px 0; max-width: 88%; }
.msg.npc { background: #fff; }
.msg.me { background: #1f3a5f; color: #fff; margin-left: auto; }
.msg .hid { color: #999; }
.exs { font-size: 15px; margin-top: 6px; }
.crit { padding-left: 4px; list-style: none; }
.mon { font-size: 14px; margin-top: 6px; }
#toast { position: fixed; left: 50%; bottom: 24px; -webkit-transform: translateX(-50%); transform: translateX(-50%); background: #1f2328; color: #fff;
  padding: 10px 16px; border-radius: 10px; opacity: 0; pointer-events: none; -webkit-transition: opacity .2s; transition: opacity .2s; z-index: 20; max-width: 90%; }
#toast.show { opacity: .95; }
.sync { font-size: 13px; }
.inrow { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; }
.inrow input, .inrow textarea { -webkit-flex: 1; flex: 1; }
.inrow .mic { margin: 0 0 0 8px; min-width: 52px; height: 52px; font-size: 24px; }
.mic.on { background: #e0763a; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.chat.tall { max-height: 58vh; }
.fixl { background: #fff5e6; border: 1px solid #f2c98a; border-radius: 10px; padding: 6px 10px; margin: -2px 0 8px auto; max-width: 88%; font-size: 15px; }
.btns button { -webkit-user-select: none; user-select: none; }
