#hermes-followup-launcher {
  position: fixed;
  right: 28px;
  bottom: 82px;
  z-index: 1100;
  border: 1px solid rgba(90, 220, 236, .58);
  border-radius: 999px;
  background: linear-gradient(135deg, #123f52, #0e273a);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color: #e6fbff;
  cursor: pointer;
  font: 600 14px/1 "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .02em;
  padding: 12px 17px;
}

#hermes-followup-launcher:hover { background: linear-gradient(135deg, #18566a, #10334a); }

#hermes-followup-backdrop {
  align-items: stretch;
  background: rgba(3, 12, 22, .68);
  display: none;
  inset: 0;
  justify-content: flex-end;
  padding: 20px;
  position: fixed;
  z-index: 1200;
}

#hermes-followup-backdrop.is-open { display: flex; }

.hfb-panel {
  background: #0d1d2c;
  border: 1px solid #28485e;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  color: #e6f3ff;
  display: flex;
  flex-direction: column;
  max-width: 800px;
  overflow: hidden;
  width: min(100%, 800px);
}

.hfb-header {
  align-items: flex-start;
  border-bottom: 1px solid #244259;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 24px 16px;
}

.hfb-eyebrow { color: #72dce9; font-size: 12px; font-weight: 700; letter-spacing: .08em; margin: 0 0 7px; }
.hfb-header h2 { font-size: 22px; line-height: 1.25; margin: 0; }
.hfb-subtitle { color: #adc3d5; font-size: 13px; line-height: 1.65; margin: 8px 0 0; max-width: 580px; }
.hfb-close { background: transparent; border: 0; color: #b8ccda; cursor: pointer; font-size: 27px; line-height: 1; padding: 0 2px; }
.hfb-close:hover { color: #fff; }

.hfb-content { overflow: auto; padding: 18px 24px 24px; }
.hfb-notice { border: 1px solid #2d536a; border-radius: 9px; color: #c5e9f2; font-size: 13px; line-height: 1.6; margin-bottom: 18px; padding: 10px 12px; }
.hfb-notice[data-state="ready"] { background: rgba(35, 160, 121, .13); border-color: rgba(83, 215, 160, .45); color: #b7f5d8; }
.hfb-notice[data-state="waiting"] { background: rgba(190, 138, 45, .11); border-color: rgba(234, 181, 71, .38); color: #ffdfa1; }
.hfb-notice[data-state="error"] { background: rgba(183, 59, 67, .15); border-color: rgba(244, 103, 111, .4); color: #ffc1c6; }

.hfb-form {
  border: 1px solid #294960;
  border-radius: 11px;
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
  padding: 17px;
}

.hfb-form-title { font-size: 16px; font-weight: 700; grid-column: 1 / -1; margin: 0; }
.hfb-field { display: grid; gap: 7px; }
.hfb-field--wide { grid-column: 1 / -1; }
.hfb-field label { color: #bad1e1; font-size: 12px; font-weight: 600; }
.hfb-field input {
  background: #0a1724;
  border: 1px solid #355a73;
  border-radius: 7px;
  box-sizing: border-box;
  color: #eff9ff;
  font: 14px/1.3 "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  min-height: 39px;
  outline: none;
  padding: 8px 10px;
  width: 100%;
}
.hfb-field input:focus { border-color: #5adcec; box-shadow: 0 0 0 2px rgba(90, 220, 236, .14); }
.hfb-field input::placeholder { color: #6d8aa1; }

.hfb-actions { align-items: center; display: flex; gap: 10px; grid-column: 1 / -1; justify-content: flex-end; margin-top: 3px; }
.hfb-button { background: #54cfdf; border: 0; border-radius: 7px; color: #06202b; cursor: pointer; font: 700 14px/1 "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif; min-height: 38px; padding: 0 16px; }
.hfb-button:hover { background: #6ee3ef; }
.hfb-button:disabled { cursor: wait; opacity: .6; }
.hfb-button--secondary { background: #173448; border: 1px solid #38617a; color: #d3eaf5; }
.hfb-button--secondary:hover { background: #20455d; }

.hfb-list-header { align-items: center; display: flex; justify-content: space-between; margin: 2px 0 11px; }
.hfb-list-header h3 { font-size: 16px; margin: 0; }
.hfb-list { display: grid; gap: 10px; }
.hfb-row { background: #0b1927; border: 1px solid #25445a; border-radius: 9px; display: grid; gap: 9px; padding: 14px; }
.hfb-row-top { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
.hfb-row-title { color: #f1fbff; font-size: 15px; font-weight: 700; line-height: 1.45; }
.hfb-row-team { color: #a6c6d9; font-size: 12px; margin-top: 3px; }
.hfb-badge { border: 1px solid #42627a; border-radius: 999px; color: #bcd5e5; flex: 0 0 auto; font-size: 12px; line-height: 1; padding: 6px 8px; white-space: nowrap; }
.hfb-badge[data-status="completed"] { border-color: #43ae80; color: #a7ecc9; }
.hfb-badge[data-status="followup_due"], .hfb-badge[data-status="waiting_update"] { border-color: #dfb25c; color: #ffd987; }
.hfb-row-meta { color: #a9c1d0; display: flex; flex-wrap: wrap; font-size: 12px; gap: 6px 15px; line-height: 1.55; }
.hfb-empty { border: 1px dashed #36546a; border-radius: 9px; color: #9db7c9; font-size: 13px; padding: 22px; text-align: center; }

@media (max-width: 640px) {
  #hermes-followup-backdrop { padding: 0; }
  .hfb-panel { border-radius: 0; max-width: none; }
  .hfb-header, .hfb-content { padding-left: 16px; padding-right: 16px; }
  .hfb-form { grid-template-columns: 1fr; padding: 14px; }
  .hfb-field--wide, .hfb-actions { grid-column: auto; }
  #hermes-followup-launcher { bottom: 67px; right: 15px; }
}
