::highlight(quote-1) { background-color: rgba(255, 224, 102, .45); }
::highlight(quote-2) { background-color: rgba(255, 205, 60,  .60); }
::highlight(quote-3) { background-color: rgba(255, 183, 0,   .75); }

.q-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 2px;
}
.q-lv1 { background: rgba(255, 224, 102, .45); }
.q-lv2 { background: rgba(255, 205, 60,  .60); }
.q-lv3 { background: rgba(255, 183, 0,   .75); }

.q-tip {
  position: absolute;
  z-index: 50;
  padding: 5px 12px;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: var(--primary, #2758C4);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
  white-space: nowrap;
}
.q-tip::before {
  content: "“";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 0;
  margin-right: 5px;
  position: relative;
  top: 3px;
}
.q-tip:hover { background: var(--primary-hover, #1E46A0); }

.q-box {
  margin: 0;
  font-family: var(--sans, system-ui, sans-serif);
  color: var(--ink, #1a1a1a);
}

.q-box [hidden] { display: none !important; }

.q-auth, .q-composer {
  background: var(--bg-gray, #f6f6f3);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.q-auth-lead {
  font-size: 12.5px;
  color: #46505e;
  margin-bottom: 9px;
}
.q-login-link {
  display: inline-block;
  font-size: 12.5px;
  padding: 6px 16px;
  border: 0;
  border-radius: 5px;
  background: var(--primary, #2758C4);
  color: #fff;
  text-decoration: none;
}
.q-login-link:hover { background: var(--primary-hover, #1E46A0); }

.q-me { margin-bottom: 10px; }

.q-hint {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted, #7c7c7c);
  margin: 0 0 6px;
}

.q-field {
  border: 1px solid #dfe4ea;
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
}
.q-field:focus-within { border-color: var(--primary, #2758C4); }

.q-quote {
  font-size: 12.5px;
  line-height: 1.8;
  color: #98a2b0;
  margin-bottom: 6px;
  max-height: 6.5em;
  overflow: auto;
}
.q-quote:empty { display: none; }

.q-text {
  width: 100%;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.8;
  padding: 0;
  border: 0;
  resize: vertical;
  box-sizing: border-box;
  background: transparent;
}
.q-text:focus { outline: 0; }
.q-text::placeholder { color: #a7b0bc; }

.q-count {
  text-align: right;
  font-size: 11px;
  color: #a7b0bc;
  margin-top: 6px;
}

.q-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.q-btns button {
  font-size: 12.5px;
  padding: 6px 16px;
  border-radius: 5px;
  border: 1px solid transparent;
}
.q-cancel { background: #fff; border-color: #cdd5e0; color: #55606e; }
.q-post   { background: var(--primary, #2758C4); color: #fff; min-width: 130px; }
.q-post:hover { opacity: .88; }

.q-error {
  font-size: 12px;
  color: #b3261e;
  background: #fdecea;
  border-radius: 5px;
  padding: 6px 9px;
  margin: 8px 0;
}

.q-list { margin-top: 12px; }

.q-card {
  border-top: 1px solid #eceff3;
  padding: 16px 0;
}
.q-card.is-on {
  background: #fffaea;
  box-shadow: inset 3px 0 0 #FFB700;
  padding-left: 9px;
}

.q-who {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  margin-bottom: 8px;
}
.q-who-text { display: block; line-height: 1.45; }
.q-who-text b { font-weight: 600; color: #22272e; }
.q-who-text small {
  display: block;
  font-size: 10.5px;
  color: #98a2b0;
  margin-top: 1px;
}
.q-who-link { color: inherit; text-decoration: none; }
.q-who-link:hover b { color: var(--primary, #2758C4); }
.q-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dfe4ea;
  display: inline-block;
  flex: none;
}

.q-cite {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.85;
  color: #22272e;
  border-left: 3px solid var(--primary, #2758C4);
  padding-left: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.q-cite::before {
  content: "“";
  color: var(--primary, #2758C4);
  margin-right: 2px;
}
.q-cite:hover { color: #6b7684; }

.q-body {
  font-size: 13px;
  line-height: 1.9;
  margin: 0 0 6px;
  color: #4a4a4a;
  white-space: pre-wrap;
  word-break: break-word;
}

.q-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: #909aa6;
}
.q-foot-btns {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.q-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #6b7684;
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
}
.q-like .ico { width: 15px; height: 15px; flex: none; }
.q-like:hover { color: var(--primary, #2758C4); }
.q-like.is-on { color: var(--primary, #2758C4); }
.q-like.is-on .ico { fill: var(--primary, #2758C4); stroke: var(--primary, #2758C4); }
.q-like:disabled { opacity: .5; cursor: default; }
.q-like-n { font-size: 12.5px; }
.q-del, .q-report {
  font-size: 11px;
  color: #909aa6;
  background: none;
  border: 0;
  padding: 2px 4px;
}
.q-del:hover { color: #b3261e; text-decoration: underline; }
.q-report:hover { color: var(--primary, #2758C4); text-decoration: underline; }
.q-report:disabled { color: #c3c9d1; text-decoration: none; cursor: default; }

.q-report-form {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #cdd5e0;
  border-radius: 6px;
  background: #f7f9fc;
}
.q-report-head {
  margin: 0 0 8px;
  font-size: 12px;
  color: #55606e;
}
.q-report-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  padding: 3px 0;
  cursor: pointer;
}
.q-report-choice input { flex: none; margin: 0; }
.q-report-note {
  width: 100%;
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid #cdd5e0;
  border-radius: 5px;
  font-size: 12.5px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.q-report-hint {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: #b3261e;
  min-height: 1em;
}
.q-report-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.q-btn {
  font-size: 12.5px;
  padding: 6px 16px;
  border-radius: 5px;
  border: 1px solid #cdd5e0;
  background: #fff;
  color: #55606e;
  cursor: pointer;
}
.q-btn.primary { background: var(--primary, #2758C4); border-color: var(--primary, #2758C4); color: #fff; }
.q-btn.primary:hover { background: var(--primary-hover, #1E46A0); }
.q-btn:disabled { opacity: .55; cursor: default; }

.q-picker {
  position: absolute;
  z-index: 60;
  width: 300px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid #cdd5e0;
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .16);
  padding: 8px;
  font-family: var(--sans, system-ui, sans-serif);
}
.q-picker-head {
  margin: 2px 6px 8px;
  font-size: 11.5px;
  color: #7b8797;
}
.q-picker-row {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 8px 9px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #22272e;
  cursor: pointer;
}
.q-picker-row:hover { background: #f2f5f8; }
.q-picker-row b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}
.q-picker-row span { color: #55606e; }

.q-flash { animation: qflash 1.2s ease; }
@keyframes qflash {
  0%   { background: rgba(255, 224, 102, .7); }
  100% { background: transparent; }
}

@media (max-width: 900px) {
  .q-auth, .q-composer {
    padding: 16px;
  }

  .q-tip {
    padding: 11px 18px;
    font-size: 14px;
    border-radius: 20px;
    min-height: 44px;
  }

  .q-text {
    font-size: 16px;
  }
  .q-quote {
    font-size: 14px;
    line-height: 1.8;
  }
  .q-cite {
    font-size: 15px;
    line-height: 1.8;
  }
  .q-body {
    font-size: 14px;
  }

  .q-btns button,
  .q-login {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 15px;
  }

  .q-quote {
    max-height: 8em;
  }
}

@media (hover: none) {
  .prose p,
  .prose h2,
  .prose h3,
  .prose h4 {
    -webkit-user-select: text;
    user-select: text;
  }
}
