* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: #ffffff;
  color: #0d0d0d;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  overflow: hidden;
}
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
#app { display: flex; height: 100%; min-width: 0; }

.side {
  width: 268px;
  flex: none;
  background: #f6f6f7;
  border-right: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.mark {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  text-decoration: none;
}
.fish { width: 52px; height: 30px; overflow: visible; }
.fish-body, .fish-tail, .fish-swim circle:last-child { fill: #2a2a2a; }
.fish-swim { transform-origin: 32px 20px; animation: drift 2.6s ease-in-out infinite; }
.fish-tail { transform-origin: 14px 20px; animation: wag 0.42s ease-in-out infinite; }
.bubble { fill: #7f93a8; opacity: 0; }
.b1 { animation: rise 2.8s ease-in infinite; }
.b2 { animation: rise 2.8s ease-in 1.3s infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 1px) rotate(-6deg); }
  50% { transform: translate(4px, -1px) rotate(7deg); }
}
@keyframes wag {
  0%, 100% { transform: rotate(16deg); }
  50% { transform: rotate(-18deg); }
}
@keyframes rise {
  0% { opacity: 0; transform: translate(0, 4px); }
  25% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(2px, -14px); }
}
#new-chat, .nav-btn {
  display: flex;
  align-items: center;
  height: 36px;
  margin: 0 10px 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: #1a1a1a;
  padding: 0 10px;
  font-size: 14px;
}
a.nav-btn:link,
a.nav-btn:visited,
a.nav-btn:hover,
a.nav-btn:active {
  color: #1a1a1a;
  text-decoration: none;
}
#new-chat {
  height: 40px;
  margin: 0 12px 8px;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  background: #fff;
}
#new-chat:hover, .nav-btn:hover, .hist-row:hover { background: #ececec; }
#new-chat:hover { background: #fafafa; }
.nav-btn.is-on { background: #e8e8e8; }
.side-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 6px 18px;
}
.side-label { font-size: 12px; color: #8e8e8e; padding: 0; }
#history-all {
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #444;
  padding: 0 8px;
  font-size: 12px;
}
#history-all:hover { background: #ececec; }
#history { flex: 1; overflow: auto; min-height: 0; }
.side-foot {
  border-top: 1px solid #ececec;
  padding: 8px 0 10px;
  display: flex;
  flex-direction: column;
}
#view-look.desk {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(920px, calc(100% - 48px));
  padding: 0 0 10vh;
  text-align: center;
}
#view-look .desk-lead { margin-bottom: 4px; }
.look-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 22px; }
.look-card {
  width: 220px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #444;
  font-size: 15px;
  text-align: center;
}
.look-preview {
  display: block;
  position: relative;
  height: 148px;
  margin-bottom: 12px;
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px #e4e4e4;
  overflow: hidden;
}
.look-preview::before,
.look-preview::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 12px;
  border-radius: 6px;
}
.look-preview::before { top: 36px; }
.look-preview::after { top: 64px; right: 72px; }
.look-light { background: #fff; }
.look-light::before, .look-light::after { background: #ececec; }
.look-dark { background: #1a1a1a; box-shadow: none; }
.look-dark::before, .look-dark::after { background: #3a3a3a; }
.look-system { background: linear-gradient(90deg, #fff 50%, #1a1a1a 50%); }
.look-system::before { background: linear-gradient(90deg, #ececec 50%, #3a3a3a 50%); }
.look-system::after { background: linear-gradient(90deg, #ececec 50%, #3a3a3a 50%); }
.look-card.is-on .look-preview { border-color: #1a1a1a; box-shadow: none; }
#view-contact.desk {
  width: min(640px, calc(100% - 48px));
  text-align: center;
}
#view-contact .desk-lead {
  margin: 0 auto 22px;
  max-width: 28em;
}
.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
  max-width: 420px;
}
.contact-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #f7f7f8;
  text-align: left;
}
.contact-action:hover { background: #f0f0f1; border-color: #ddd; }
.contact-action.is-ok {
  background: #eef7ee;
  border-color: #b7d9b8;
}
.contact-action-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}
.contact-action-hint {
  font-size: 13px;
  color: #888;
}
.contact-action.is-ok .contact-action-hint { color: #2f7d32; }
.tip-title {
  margin: 40px 0 16px;
  font-size: 18px;
  font-weight: 600;
}
.tip-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.tip-card {
  margin: 0;
  min-width: 0;
}
.tip-card figcaption {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
}
.tip-frame {
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background: #fafafa;
  overflow: hidden;
}
.tip-code {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
@media (max-width: 640px) {
  .contact-actions,
  .tip-row { grid-template-columns: 1fr; }
  .tip-frame { height: 320px; }
}
.desk.account-page { display: flex; flex-direction: column; width: min(480px, calc(100% - 48px)); padding-top: 72px; }
.account-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f2f2f2;
  color: #1a1a1a;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 600;
}
.account-name { margin-top: 12px; font-size: 16px; font-weight: 600; }
.account-card { background: #f6f6f7; border-radius: 16px; padding: 14px 16px 16px; }
.account-kicker { margin: 0 0 10px; font-size: 12px; color: #888; }
.account-view {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6e6e6;
}
.account-pass { display: flex; flex-direction: column; gap: 8px; }
.account-row-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.account-pass input {
  height: 40px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}
.account-msg { min-height: 18px; margin: 0; font-size: 13px; color: #888; }
.account-msg.account-plain { color: #1a1a1a; font-size: 15px; }
.account-msg.is-ok { color: #2f7d32; }
.account-save {
  height: 36px;
  align-self: flex-start;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: 0 16px;
}
.account-logout {
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: #f3f3f3;
  color: #1a1a1a;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.account-logout:hover { background: #ececec; }
.hist-row { position: relative; display: flex; align-items: center; }
.hist {
  width: 100%;
  height: 36px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0 32px 0 18px;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hist.is-on { background: #e7e7e7; }
.hist-del {
  position: absolute;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #666;
  opacity: 0.7;
}
.hist-row:hover .hist-del { opacity: 1; }
.hist-del:hover { background: #e2e2e2; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; position: relative; }
#side-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3a3a3a;
}
#side-toggle:hover { background: #f2f2f2; }
#side-toggle .tip {
  display: none;
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  gap: 4px;
  background: #2b2b2b;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 8px;
  pointer-events: none;
}
#side-toggle:hover .tip,
#side-toggle:focus-visible .tip { display: flex; }
#side-toggle kbd {
  background: #111;
  color: #fff;
  border-radius: 4px;
  padding: 0 5px;
  font-family: inherit;
  font-size: 12px;
  line-height: 18px;
}
#app.is-side-closed .side { display: none; }
#scroll { flex: 1; overflow: auto; min-height: 0; }
#thread { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 16px; }
.hello {
  margin: 0 0 20px;
  text-align: center;
  font-size: 28px;
  font-weight: 500;
}
.msg { margin: 0 0 18px; }
.role { font-size: 12px; color: #8e8e8e; margin-bottom: 6px; }
.user p, .bot p, .pick p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
.user {
  display: flex;
  justify-content: flex-end;
}
.user p {
  max-width: 80%;
  background: #f4f4f4;
  border-radius: 12px;
  padding: 8px 12px;
}
.bot p { margin: 0 0 10px; }
.pick-title { font-size: 14px; color: #444; margin-bottom: 8px; }
.pick-list { display: flex; flex-direction: column; gap: 6px; }
.pick-item {
  width: 100%;
  text-align: left;
  border: 1px solid #e3e3e3;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.45;
}
.pick-item:hover { background: #f7f7f7; }
.caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #0d0d0d;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink { 50% { background: transparent; } }
.err { color: #8e8e8e; font-size: 14px; }
.thinking {
  display: block;
  color: #6b6b6b;
  font-size: 15px;
}
.think-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.think-lines p {
  margin: 0 0 10px;
  color: #3d3d3d;
  font-size: 15px;
  line-height: 1.75;
}
.think-alert {
  color: #b5b5b5;
  font-size: 13px;
  font-weight: 400;
}
.thinking.is-empty {
  margin-top: 8vh;
}
.spin {
  width: 16px;
  height: 16px;
  border: 2px solid #e4e4e4;
  border-top-color: #0d0d0d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#form {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto 18px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  padding: 10px 10px 10px 14px;
}
#app.is-home .main { justify-content: center; }
#app.is-home #scroll { flex: 0 0 auto; overflow: visible; }
#app.is-home #thread {
  width: min(920px, calc(100% - 40px));
  padding-top: 0;
}
#app.is-home #form {
  width: min(920px, calc(100% - 40px));
  min-height: 132px;
  margin: 0 auto;
}
#app.is-home #input {
  min-height: 100px;
  max-height: 180px;
}
.hot {
  width: 300px;
  flex: none;
  border-left: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 14px 16px;
}
.hot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hot-title { font-size: 15px; font-weight: 600; }
#hot-close, #hot-open {
  border: 0;
  background: transparent;
  color: #666;
  font-size: 13px;
  border-radius: 6px;
}
#hot-close { padding: 4px 8px; }
#hot-close:hover, #hot-open:hover { background: #f3f3f3; }
#hot-open {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  border: 1px solid #e3e3e3;
  background: #fff;
  height: 32px;
  padding: 0 12px;
}
#hot-list { overflow: auto; min-height: 0; }
.hot-item {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}
.hot-item:hover { background: #f7f7f7; }
.hot-rank {
  width: 18px;
  flex: none;
  color: #9a9a9a;
  font-variant-numeric: tabular-nums;
}
.hot-item.is-top .hot-rank { color: #c4552a; font-weight: 600; }
.hot-name { flex: 1; }
.hot-empty { color: #8e8e8e; font-size: 13px; padding: 8px 6px; }
#input {
  flex: 1;
  border: 0;
  resize: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  min-height: 24px;
  max-height: 120px;
  padding: 4px 0;
}
#send, #stop {
  height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
}
#send { background: #0d0d0d; color: #fff; }
#stop { background: #f4f4f4; color: #0d0d0d; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-card {
  width: min(480px, calc(100% - 32px));
  max-height: min(560px, calc(100% - 48px));
  overflow: auto;
  background: #fff;
  color: #1a1a1a;
  border-radius: 8px;
  padding: 20px 22px 16px;
}
.intro-card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.intro-card p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.intro-card ol { margin: 0 0 16px; padding-left: 18px; font-size: 13px; line-height: 1.65; }
.intro-card li { margin: 0 0 8px; }
.intro-card button {
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: #111;
  color: #fff;
  padding: 0 14px;
  font-size: 13px;
}
.desk { flex: 1; overflow: auto; width: min(720px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 28px; }
#view-shelf.fish-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 52px 20px 16px;
  overflow: hidden;
}
#hot-boards {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hot-board {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 12px 10px 6px;
  overflow: hidden;
}
.hot-board h2 {
  margin: 0 0 6px;
  padding: 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.hot-list { overflow: auto; min-height: 0; }
@media (max-width: 1100px) {
  #hot-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  #view-shelf.fish-page { overflow: auto; }
}
.fish-upload {
  height: 44px;
  min-width: 112px;
  border: 0;
  border-radius: 10px;
  background: #111;
  color: #fff;
  padding: 0 28px;
  font-size: 15px;
}
#fish-form input {
  width: 100%;
  height: 40px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  margin: 0 0 8px;
}
.fish-book { flex-wrap: wrap; align-items: flex-start; }
.fish-toc { list-style: none; width: 100%; margin: 6px 0 0; padding: 0; }
.fish-toc button {
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-size: 14px;
  color: #444;
  text-align: left;
}
.desk h1 { margin: 0 0 8px; font-size: 28px; font-weight: 500; }
html.is-about #scroll,
html.is-about #form { display: none !important; }
html.is-about #view-about { display: block !important; }
.about-copy h1 { margin-bottom: 12px; font-size: 32px; font-weight: 600; }
.about-copy h2 { margin: 28px 0 8px; font-size: 18px; font-weight: 600; }
.about-copy p { margin: 0 0 12px; font-size: 16px; line-height: 1.75; }
.about-copy ol { margin: 0 0 12px; padding-left: 1.4em; font-size: 16px; line-height: 1.75; }
.about-copy li { margin: 0 0 8px; }
.about-copy strong { font-weight: 700; }
.import-form { display: flex; flex-direction: column; gap: 10px; margin: 0 0 22px; }
.import-form input, .import-form select, .import-form textarea {
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
}
.import-form textarea { resize: vertical; min-height: 140px; }
.import-form button, #shelf-login, .file-btn, .reader-bar button, .reader-nav button {
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: 0 14px;
  font-size: 14px;
}
.file-btn { display: inline-flex; align-items: center; width: fit-content; cursor: pointer; }
.shelf-row, .reader-bar, .reader-nav { display: flex; align-items: center; gap: 10px; }
.shelf-row { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.shelf-row > button:first-child {
  border: 0;
  background: transparent;
  font-size: 16px;
  padding: 0;
}
.shelf-row .shelf-del {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 13px;
}
.shelf-kind { color: #888; font-size: 12px; }
.reader-bar { margin-bottom: 18px; }
.reader-bar select { height: 36px; border: 1px solid #e3e3e3; border-radius: 8px; padding: 0 8px; font: inherit; }
#reader-book { font-size: 16px; }
#reader-progress { color: #666; font-size: 13px; margin-left: auto; }
#reader-body {
  min-height: 46vh;
  font-size: 18px;
  line-height: 1.9;
  white-space: pre-wrap;
}
.reader-nav { margin-top: 18px; }
.reader-nav button { background: #f3f3f3; color: #111; }
.desk-lead { margin: 0 0 18px; color: #555; font-size: 14px; }
.tech-page { width: min(760px, calc(100% - 48px)); }
.tech-list, #tech-list { display: flex; flex-direction: column; gap: 12px; }
.tech-card {
  padding: 16px 18px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fafafa;
}
.tech-host { margin: 0 0 6px; color: #888; font-size: 12px; }
.tech-card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.tech-summary { margin: 0 0 10px; color: #444; font-size: 14px; line-height: 1.7; }
.tech-open, .tech-open:link, .tech-open:visited, .tech-open:hover, .tech-open:active {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}
.tech-empty { color: #888; font-size: 14px; }
.todo-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.todo-form input, #auth-form input {
  height: 36px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
}
#todo-text { flex: 1; min-width: 0; }
.todo-form button { height: 36px; border: 0; border-radius: 8px; background: #111; color: #fff; padding: 0 14px; }
.todo-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.todo-hints button {
  height: 32px;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
  color: #333;
  padding: 0 12px;
  font-size: 13px;
}
.todo-hints button:hover { background: #f6f6f6; }
.todo-item { border-bottom: 1px solid #f0f0f0; }
.todo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
}
.todo-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 0 12px;
}
.todo-edit input {
  height: 34px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
}
.todo-edit button {
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: 0 14px;
  font-size: 13px;
}
.todo-edit .err { margin: 0; }
.todo-row time { color: #888; font-size: 12px; flex: none; }
.todo-row span { flex: 1; }
.todo-row button { border: 0; background: transparent; color: #666; font-size: 13px; }
.todo-empty { color: #8e8e8e; font-size: 14px; margin-top: 16px; }
.auth-card {
  width: min(520px, calc(100% - 48px));
  padding: 32px 32px 24px;
}
.auth-card h2 { font-size: 22px; margin-bottom: 16px; }
.auth-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.auth-tabs button { height: 40px; padding: 0 20px; background: #f3f3f3; color: #333; font-size: 15px; }
.auth-tabs button.is-on { background: #111; color: #fff; }
#auth-form input {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0 0 14px;
  font-size: 15px;
  border-radius: 10px;
}
.auth-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.auth-actions button { height: 40px; padding: 0 18px; font-size: 14px; }
.text-btn {
  display: inline-block;
  height: auto;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: #555 !important;
  font-size: 13px;
}
.ghost { background: #f3f3f3 !important; color: #222 !important; }
#history-search {
  width: 100%;
  height: 42px;
  margin: 8px 0 18px;
  border: 0;
  border-radius: 12px;
  background: #f4f4f5;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
}
.hist-card {
  width: 100%;
  display: block;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: transparent;
  padding: 14px 4px;
}
.hist-card strong { display: block; font-size: 16px; font-weight: 600; }
.hist-card span { display: block; margin-top: 6px; color: #777; font-size: 13px; line-height: 1.5; }
.hist-all-row { display: flex; align-items: flex-start; gap: 8px; }
.hist-all-row .hist-card { flex: 1; }
.hist-all-row .hist-del { position: static; opacity: 0.7; margin-top: 16px; }
.remind {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  padding-bottom: 6vh;
}
.clock {
  position: relative;
  width: min(640px, 68vh, calc(100vw - 80px));
  height: min(640px, 68vh, calc(100vw - 80px));
  border-radius: 50%;
  background: #f4efe6;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.clock-svg { width: 100%; height: 100%; display: block; }
.clock-rim { fill: #f4efe6; stroke: #1a1a1a; stroke-width: 7; }
.clock-svg text { font-size: 14px; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; fill: #1a1a1a; }
.clock-svg .tick { stroke: #1a1a1a; stroke-width: 2; }
.clock-svg .tick.major { stroke-width: 3.5; }
.hand { transform-box: view-box; transform-origin: 100px 100px; }
.hand line { stroke: #1a1a1a; stroke-linecap: round; }
.hand.hour line { stroke-width: 5; }
.hand.minute line { stroke-width: 3; }
.clock-pin { fill: #1a1a1a; }
.clock-copy {
  position: absolute;
  left: 50%;
  top: 64%;
  transform: translate(-50%, -50%);
  width: 58%;
  text-align: center;
}
.clock-copy h2 { margin: 0 0 8px; font-size: 28px; font-weight: 600; }
.clock-copy p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.5;
  white-space: pre-line;
}
.clock-copy button {
  height: 40px;
  min-width: 108px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0 18px;
  font-size: 15px;
}

* { scrollbar-width: thin; scrollbar-color: #c8c8c8 transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #c8c8c8; }
@media (max-width: 800px) {
  .side { width: 200px; }
}

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body {
  background: #141414;
  color: #ececec;
}
html[data-theme="dark"] .side {
  background: #1b1b1b;
  border-right-color: #2c2c2c;
}
html[data-theme="dark"] .side-foot,
html[data-theme="dark"] .hot,
html[data-theme="dark"] .todo-item,
html[data-theme="dark"] .shelf-row { border-color: #2c2c2c; }
html[data-theme="dark"] .hot { background: #161616; }
html[data-theme="dark"] .nav-btn,
html[data-theme="dark"] a.nav-btn:link,
html[data-theme="dark"] a.nav-btn:visited,
html[data-theme="dark"] a.nav-btn:hover,
html[data-theme="dark"] a.nav-btn:active,
html[data-theme="dark"] .account-name,
html[data-theme="dark"] .account-row-title,
html[data-theme="dark"] .hello,
html[data-theme="dark"] .desk h1 { color: #ececec; }
html[data-theme="dark"] .about-copy h2,
html[data-theme="dark"] .about-copy p,
html[data-theme="dark"] .tech-card h2 { color: #ececec; }
html[data-theme="dark"] .tech-open,
html[data-theme="dark"] .tech-open:link,
html[data-theme="dark"] .tech-open:visited,
html[data-theme="dark"] .tech-open:hover,
html[data-theme="dark"] .tech-open:active,
html[data-theme="dark"] .fish-upload { background: #ececec; color: #141414; }
html[data-theme="dark"] .fish-toc button { color: #c8c8c8; }
html[data-theme="dark"] .tech-summary { color: #c8c8c8; }
html[data-theme="dark"] #new-chat,
html[data-theme="dark"] #history-all,
html[data-theme="dark"] .contact-action,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .tech-card,
html[data-theme="dark"] .account-logout,
html[data-theme="dark"] .intro-card,
html[data-theme="dark"] .pick-item,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] #form {
  background: #242424;
  color: #ececec;
  border-color: #3a3a3a;
}
html[data-theme="dark"] .look-card { color: #c8c8c8; }
html[data-theme="dark"] .look-card.is-on .look-preview { border-color: #ececec; }
html[data-theme="dark"] #new-chat:hover,
html[data-theme="dark"] .nav-btn:hover,
html[data-theme="dark"] .nav-btn.is-on,
html[data-theme="dark"] .hist-row:hover,
html[data-theme="dark"] .hist.is-on,
html[data-theme="dark"] .account-logout:hover,
html[data-theme="dark"] .hot-board { background: #1c1c1c; border-color: #2c2c2c; }
html[data-theme="dark"] .hot-board h2 { color: #ececec; }
html[data-theme="dark"] .hot-item:hover,
html[data-theme="dark"] .pick-item:hover,
html[data-theme="dark"] #side-toggle:hover { background: #2e2e2e; }
html[data-theme="dark"] .user p,
html[data-theme="dark"] #stop,
html[data-theme="dark"] .auth-tabs button { background: #2a2a2a; color: #ececec; }
html[data-theme="dark"] .auth-tabs button.is-on,
html[data-theme="dark"] #send,
html[data-theme="dark"] .account-save,
html[data-theme="dark"] .clock-copy button { background: #ececec; color: #141414; }
html[data-theme="dark"] .account-avatar { background: #333; color: #ececec; }
html[data-theme="dark"] .account-view,
html[data-theme="dark"] .contact-action {
  background: #242424;
  border-color: #3a3a3a;
}
html[data-theme="dark"] .contact-action:hover {
  background: #2a2a2a;
  border-color: #4a4a4a;
}
html[data-theme="dark"] .contact-action.is-ok {
  background: #1f2a1f;
  border-color: #3d6b3f;
}
html[data-theme="dark"] .contact-action-name { color: #ececec; }
html[data-theme="dark"] .contact-action-hint { color: #9a9a9a; }
html[data-theme="dark"] .contact-action.is-ok .contact-action-hint { color: #7dba7f; }
html[data-theme="dark"] .tip-frame {
  background: #1c1c1c;
  border-color: #2c2c2c;
}
html[data-theme="dark"] .tip-card figcaption,
html[data-theme="dark"] .tip-title { color: #ececec; }
html[data-theme="dark"] .account-kicker,
html[data-theme="dark"] .account-msg { color: #9a9a9a; }
html[data-theme="dark"] .account-msg.account-plain { color: #ececec; }
html[data-theme="dark"] .think-lines p,
html[data-theme="dark"] .pick-title,
html[data-theme="dark"] .desk-lead,
html[data-theme="dark"] .desk-lead { color: #c8c8c8; }
html[data-theme="dark"] .think-alert { color: #8d8d8d; }
html[data-theme="dark"] .clock {
  background: #242424;
  color: #ececec;
}
html[data-theme="dark"] .clock-rim,
html[data-theme="dark"] .hand { stroke: #ececec; }
html[data-theme="dark"] .clock-pin { fill: #ececec; }
html[data-theme="dark"] .fish-body,
html[data-theme="dark"] .fish-tail,
html[data-theme="dark"] .fish-swim circle:last-child { fill: #ececec; }
html[data-theme="dark"] .fish-swim circle { fill: #1b1b1b !important; }
html[data-theme="dark"] .sheet { background: rgba(0, 0, 0, 0.62); }
html[data-theme="dark"] * { scrollbar-color: #3a3a3a transparent; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #3a3a3a; }
