html { background: #e9e4d8; }
body {
  margin: 0;
  padding: 8px;
  background: #e9e4d8;
  color: #1d1c18;
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 18px;
  line-height: 1.65;
}
a { color: #4c5f60; }
.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 10px 14px 20px;
  background: #fbf9f2;
  border: 1px solid #d8d0c1;
}
.brand { margin: 0 0 3px; font-size: 1.12em; font-weight: bold; letter-spacing: .02em; color: #5a5347; }
.brand a { color: inherit; text-decoration: none; }
.nav { margin: 0 0 12px; padding: 2px 0 7px; border-bottom: 1px solid #e0d8c9; }
.nav a { display: inline-block; margin: 0 10px 0 0; padding: 4px 2px; color: #4e5f5f;
  font-size: .86em; text-decoration: none; }
.nav .logout { float: right; color: #877e6e; }
h1 { margin: .25em 0 .5em; font-size: 1.3em; line-height: 1.3; }
h2 { margin: 1.1em 0 .4em; padding-bottom: .16em; border-bottom: 1px solid #e1d9ca; font-size: 1.05em; }
p { margin: .55em 0; }
.hint, .meta { color: #71695c; font-size: .84em; line-height: 1.5; }
.notice, .error, .success { margin: .8em 0; padding: .55em .7em; border-left: 4px solid #806633; background: #f7efdc; }
.error { border-left-color: #8f2f2f; background: #faeae5; }
.success { border-left-color: #356844; background: #e9f2e6; }
.btn, button {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 7px 12px;
  border: 1px solid #6a6255;
  background: #f1e8d4;
  color: #1d1c18;
  font-family: inherit;
  font-size: .95em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
input[type=text], input[type=password], input[type=file], select, textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 7px;
  border: 1px solid #8f856f;
  background: #fffefb;
  color: #181714;
  font-family: inherit;
  font-size: 1em;
}
label { display: block; margin: .8em 0 .2em; font-weight: bold; }
form.inline { margin: .6em 0; }
.book {
  margin: .8em 0;
  padding: .7em .8em;
  border: 1px solid #d8d0c1;
  background: #fffdf7;
}
.book-title { margin: 0 0 .2em; font-size: 1.05em; font-weight: bold; }
.book-title a { text-decoration: none; }
.book-meta { color: #71695c; font-size: .82em; }
.empty { color: #71695c; padding: .8em 0; }
.footer { margin-top: 1.4em; padding-top: .6em; border-top: 1px solid #e0d8c9; color: #71695c; font-size: .78em; }

/* Reader */
.reader-body { padding: 0; background: #e9e4d8; }
.reader-body .wrap { max-width: 700px; margin: 0 auto; padding: 10px 14px 0; background: #fbf9f2; border: 0; }
.reader-title { margin: .7em 0 1.5em; text-align: center; }
.reader-title h1 { margin: 0 0 .25em; font-size: 1.45em; line-height: 1.35; font-weight: normal; }
.reader-title .book-meta { font-size: .8em; }
.reader-text { font-size: 1.1em; line-height: 1.8; color: #1d1c18; }
.reader-text p { margin: 0 0 1.15em; text-align: left; }
.reader-text a.word-link,
.reader-text a.word-link:link,
.reader-text a.word-link:visited,
.reader-text a.word-link:hover,
.reader-text a.word-link:active { color: inherit !important; text-decoration: none !important;
  border-bottom: 0 !important; background: transparent !important; }
.reader-hint { margin: .35em 0 1.15em; padding: 0; color: #7b7467; font-size: .78em;
  line-height: 1.5; text-align: center; }
.reader-mode { margin: .3em 0 .9em; text-align: center; color: #7b7467; font-size: .8em; }
.reader-mode a { color: #526467; text-decoration: none; padding: 4px; }
.reader-image { margin: .5em 0; text-align: center; }
.reader-image img { max-width: 100%; height: auto; border: 0; }
.reader-bottom { margin: 1.3em 0 0; padding: .55em 0 .7em; border-top: 1px solid #dfd7c8;
  font-size: .9em; color: #4d4a43; }
.reader-bottom a { color: #4c5f60; text-decoration: none; padding: 7px 5px; }
.reader-bottom .sep { color: #b3aa9a; padding: 0 1px; }
.reader-bottom .position { float: right; padding: 7px 2px; color: #6d6558; }
.reader-bottom .reader-disabled { color: #b1a99a; padding: 7px 5px; }
.toc-list { padding-left: 1.2em; }
.toc-list li { margin: .35em 0; }
.toc-level-1 { font-weight: bold; }
.toc-level-2 { margin-left: 1em !important; }
.toc-level-3 { margin-left: 2em !important; }

/* Lookup */
.lookup-head { margin: .4em 0 .1em; font-size: 1.5em; font-weight: bold; }
.lookup-meta { color: #71695c; font-size: .9em; margin-bottom: .6em; }
.definitions { margin: .5em 0 .6em 1.2em; padding: 0; }
.definitions li { margin: .25em 0; }
.context { margin: .55em 0; padding: .4em .7em; border-left: 2px solid #d2c4a9; color: #5e574b; }
.sync-state { margin-top: .8em; padding: .45em .6em; background: #f2ecdf; color: #6b6356;
  font-size: .82em; line-height: 1.5; }
.js-hidden { display: none; }

/* Wrong words and settings */
.wrong-entry { margin: .8em 0; padding: .65em .75em; border: 1px solid #d8d0c1; background: #fffdf7; }
.word-head { font-size: 1.1em; font-weight: bold; }
.word-extra { color: #655e52; font-size: .86em; line-height: 1.5; }
.word-actions { margin-top: .5em; }
.word-actions button { margin-right: 8px; }
.status-box { margin: .7em 0; padding: .55em .7em; border-left: 3px solid #9a8a67;
  background: #f4eedf; color: #5f574a; font-size: .86em; line-height: 1.55; }
.api-box { padding: .5em .7em; border: 1px solid #ded5c3; background: #f7f1e4;
  font-size: .82em; word-wrap: break-word; }
.login-note { margin: .7em 0; padding: .5em .7em; border-left: 3px solid #9a8a67;
  background: #f4eedf; color: #5f574a; font-size: .85em; line-height: 1.55; }

@media (max-width: 620px) {
  body { padding: 0; }
  .wrap { padding: 8px; border: 0; }
  .reader-body .wrap { padding: 8px 10px 0; }
  .reader-text { font-size: 1.06em; line-height: 1.76; }
  .nav a { margin-right: 8px; padding: 4px 2px; }
  .nav .logout { float: none; }
  .reader-bottom { font-size: .84em; }
  .reader-bottom a { padding: 7px 3px; }
  .reader-bottom .position { padding: 7px 1px; }
}
