/* Hospital panel (app/modules/dashboard/hospital) and the hospital's public
   booking page (app/modules/profile/public-hospital). Everything is scoped
   under .hsp / .hpub so nothing here reaches another screen.

   index.css puts a font stack on `*` with serif ahead of sans-serif, so a
   full-screen page needs its own rule or it prints in Times. */
.hsp, .hsp *:not(.fa), .hpub, .hpub *:not(.fa),
.hsp-invite, .hsp-invite *:not(.fa), .hsp-hh-sheet, .hsp-hh-sheet *:not(.fa) {
  font-family: 'Roboto', 'Noto Sans Bengali', 'Segoe UI', Arial, sans-serif;
  box-sizing: border-box;
}

.hsp, .hpub {
  --hsp-primary: #0b63ce;
  --hsp-primary-dark: #084b9c;
  --hsp-primary-soft: #e8f1fd;
  --hsp-ink: #1f2937;
  --hsp-muted: #6b7280;
  --hsp-line: #e5e7eb;
  --hsp-bg: #f4f6fa;
  --hsp-card: #ffffff;
  --hsp-ok: #0f7a3d;
  --hsp-ok-soft: #e6f4ec;
  --hsp-warn: #9a5b00;
  --hsp-warn-soft: #fff4e0;
  --hsp-danger: #b42318;
  --hsp-danger-soft: #fdecea;
  --hsp-info: #5b3cc4;
  --hsp-info-soft: #f0ebff;
  color: var(--hsp-ink);
  font-size: 14px;
  line-height: 1.45;
}

.hsp { background: var(--hsp-bg); min-height: 100vh; padding: 0 0 48px; }

/* ---- top bar ---- */
.hsp-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border-bottom: 1px solid var(--hsp-line);
  padding: 12px 24px; position: sticky; top: 0; z-index: 20;
}
.hsp-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hsp-logo { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--hsp-line); flex: none; }
.hsp-logo-letter { display: flex; align-items: center; justify-content: center; background: var(--hsp-primary); color: #fff; font-weight: 700; font-size: 20px; border: 0; }
.hsp-name { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsp-sub { color: var(--hsp-muted); font-size: 12px; }
.hsp-role { display: inline-block; text-transform: capitalize; background: var(--hsp-primary-soft); color: var(--hsp-primary-dark); border-radius: 10px; padding: 0 8px; font-size: 11px; font-weight: 600; }
.hsp-top-actions { display: flex; gap: 6px; flex: none; }
.hsp-menu-btn { display: none !important; }

/* ---- layout ---- */
.hsp-body { display: flex; gap: 24px; max-width: 1360px; margin: 0 auto; padding: 24px; align-items: flex-start; }
.hsp-tabs { width: 220px; flex: none; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 92px; }
.hsp-tabs button {
  display: flex; align-items: center; gap: 8px; justify-content: flex-start; width: 100%;
  text-align: left; border: 0; background: transparent; color: var(--hsp-ink);
  padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer;
}
.hsp-tabs button .fa { width: 20px; color: var(--hsp-muted); }
.hsp-tabs button:hover { background: #eaeef5; }
.hsp-tabs button.active { background: var(--hsp-primary); color: #fff; }
.hsp-tabs button.active .fa { color: #fff; }
.hsp-main { flex: 1; min-width: 0; }

.hsp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hsp-head h2 { margin: 0 0 2px; font-size: 22px; font-weight: 700; }
.hsp-head p { margin: 0; }
.hsp-head-tight { align-items: center; margin-bottom: 8px; }
.hsp-head-tight h3 { margin: 0; }
.hsp-head > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hsp-muted { color: var(--hsp-muted); }
.hsp-small { font-size: 12px; }
.hsp-right { text-align: right; white-space: nowrap; }
.hsp-num { text-align: right; font-variant-numeric: tabular-nums; }
.hsp-center { justify-content: center; }
.hsp-cap { text-transform: capitalize; }

.hsp-card { background: var(--hsp-card); border: 1px solid var(--hsp-line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.hsp-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.hsp-card h3:not(:first-child) { margin-top: 24px; }
.hsp-card h4 { font-size: 14px; font-weight: 700; margin: 18px 0 8px; }
.hsp-flush { padding: 0; overflow: hidden; }
.hsp-pw { max-width: 1312px; margin: 16px auto 0; }

/* ---- buttons & inputs ---- */
.hsp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid #cfd6e1;
  background: #fff; color: var(--hsp-ink); font-size: 14px; font-weight: 500; cursor: pointer;
  text-decoration: none !important; white-space: nowrap; vertical-align: middle;
}
.hsp-btn:hover { background: #f3f6fb; color: var(--hsp-ink); }
.hsp-btn[disabled] { opacity: .5; cursor: not-allowed; }
.hsp-btn-primary { background: var(--hsp-primary); border-color: var(--hsp-primary); color: #fff; }
.hsp-btn-primary:hover { background: var(--hsp-primary-dark); color: #fff; }
.hsp-btn-ghost { border-color: transparent; background: transparent; }
.hsp-btn-danger-ghost { color: var(--hsp-danger); border-color: #f1c4bf; }
.hsp-btn-danger-ghost:hover { background: var(--hsp-danger-soft); color: var(--hsp-danger); }
.hsp-btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.hsp-btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.hsp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.hsp label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: #4b5563; margin: 0; }
.hsp input[type=text], .hsp input[type=email], .hsp input[type=tel], .hsp input[type=number], .hsp input[type=password],
.hsp input[type=search], .hsp input[type=date], .hsp select, .hsp-input {
  height: 38px; padding: 0 10px; border: 1px solid #cfd6e1; border-radius: 8px; background: #fff;
  font-size: 14px; font-weight: 400; color: var(--hsp-ink); width: 100%; box-shadow: none;
}
.hsp input:focus, .hsp select:focus { outline: none; border-color: var(--hsp-primary); box-shadow: 0 0 0 3px rgba(11, 99, 206, .15); }
.hsp .hsp-input-auto { width: auto; min-width: 160px; }
.hsp .hsp-input-sm { height: 30px; font-size: 13px; }
.hsp-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400 !important; font-size: 14px !important; color: var(--hsp-ink) !important; margin: 8px 0 !important; }
.hsp-check input { width: 16px; height: 16px; margin: 0; }
.hsp-toolbar { display: flex; gap: 8px; margin-bottom: 16px; }
.hsp-date { width: 150px !important; }

.hsp-grid { display: grid; gap: 12px; }
.hsp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hsp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hsp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hsp-grid-split { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
.hsp-gap-lg { gap: 20px; }
.hsp-grid .span-2 { grid-column: span 2; }
.hsp-grid .span-3 { grid-column: span 3; }
.hsp-grid > .hsp-actions, .hsp-grid > .hsp-err { grid-column: 1 / -1; }

/* ---- messages ---- */
.hsp-alert { border-radius: 10px; padding: 12px 16px; margin: 16px auto; max-width: 1312px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hsp-main .hsp-alert { margin: 0 0 16px; }
.hsp-alert-danger { background: var(--hsp-danger-soft); color: var(--hsp-danger); }
.hsp-alert-warn { background: var(--hsp-warn-soft); color: var(--hsp-warn); }
.hsp-alert-ok { background: var(--hsp-ok-soft); color: var(--hsp-ok); }
.hsp-alert code { background: #fff; color: var(--hsp-ink); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.hsp-err { background: var(--hsp-danger-soft); color: var(--hsp-danger); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; }
.hsp-loading { color: var(--hsp-muted); padding: 16px; }
.hsp-empty { text-align: center; padding: 48px 16px; color: var(--hsp-muted); }
.hsp-empty .fa { font-size: 36px; color: #c3cad6; }
.hsp-empty p { margin: 12px 0 16px; }
.hsp-empty-sm { padding: 24px 16px; }

/* ---- badges & status ---- */
.hsp-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; background: #eef0f4; color: #4b5563; white-space: nowrap; }
.b-web { background: var(--hsp-info-soft); color: var(--hsp-info); }
.b-desk { background: #eef0f4; color: #4b5563; }
.b-warn { background: var(--hsp-warn-soft); color: var(--hsp-warn); }
.b-ok { background: var(--hsp-ok-soft); color: var(--hsp-ok); }
.b-info { background: var(--hsp-primary-soft); color: var(--hsp-primary-dark); }
.hsp-status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-waiting { background: #eef0f4; color: #4b5563; }
.st-arrived { background: var(--hsp-warn-soft); color: var(--hsp-warn); }
.st-seen { background: var(--hsp-ok-soft); color: var(--hsp-ok); }
.st-cancelled, .st-removed { background: var(--hsp-danger-soft); color: var(--hsp-danger); }
.row-cancelled td, .row-removed td { opacity: .55; }
.hsp-serial { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border-radius: 50%; background: var(--hsp-primary-soft); color: var(--hsp-primary-dark); font-weight: 700; }
.hsp-hid { display: inline-block; margin-top: 4px; font-weight: 600; background: var(--hsp-primary-soft); color: var(--hsp-primary-dark); padding: 2px 8px; border-radius: 6px; font-size: 12px; }

/* ---- stats & chips ---- */
.hsp-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.hsp-stat { background: #fff; border: 1px solid var(--hsp-line); border-radius: 12px; padding: 14px 16px; text-align: left; cursor: default; }
button.hsp-stat { cursor: pointer; }
button.hsp-stat:hover { border-color: #b8c3d4; }
.hsp-stat.on { border-color: var(--hsp-primary); box-shadow: 0 0 0 2px rgba(11, 99, 206, .15); }
.hsp-stat b { display: block; font-size: 24px; font-weight: 700; }
.hsp-stat span { color: var(--hsp-muted); font-size: 12px; }
.hsp-stat.s-waiting b { color: #4b5563; }
.hsp-stat.s-arrived b { color: var(--hsp-warn); }
.hsp-stat.s-seen b { color: var(--hsp-ok); }
.hsp-stat.s-cancelled b { color: var(--hsp-danger); }
.hsp-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.hsp-chip { border: 1px solid #cfd6e1; background: #fff; border-radius: 16px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.hsp-chip.on { background: var(--hsp-primary); border-color: var(--hsp-primary); color: #fff; }
.hsp-daynav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---- tables ---- */
.hsp-table { width: 100%; border-collapse: collapse; }
.hsp-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--hsp-muted); padding: 10px 16px; border-bottom: 1px solid var(--hsp-line); background: #fafbfd; white-space: nowrap; }
.hsp-table td { padding: 10px 16px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.hsp-table tr:last-child td { border-bottom: 0; }
.hsp-card:not(.hsp-flush) .hsp-table th, .hsp-card:not(.hsp-flush) .hsp-table td { padding-left: 8px; padding-right: 8px; }
.hsp-doctor-day { padding: 0; overflow: hidden; }
.hsp-doctor-day-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--hsp-line); }

/* ---- booking flow ---- */
.hsp-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 20px; }
.hsp-steps li { flex: 1; background: #fff; border: 1px solid var(--hsp-line); border-radius: 10px; padding: 10px 12px; color: var(--hsp-muted); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.hsp-steps li span { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: #eef0f4; font-size: 12px; flex: none; }
.hsp-steps li small { display: block; width: 100%; font-weight: 400; color: var(--hsp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsp-steps li.on { border-color: var(--hsp-primary); color: var(--hsp-primary-dark); }
.hsp-steps li.on span { background: var(--hsp-primary); color: #fff; }
.hsp-steps li.done { cursor: pointer; color: var(--hsp-ink); }
.hsp-steps li.done span { background: var(--hsp-ok); color: #fff; }

.hsp-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.hsp-doc-card { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1px solid var(--hsp-line); border-radius: 12px; padding: 14px; cursor: pointer; width: 100%; }
.hsp-doc-card:hover { border-color: var(--hsp-primary); box-shadow: 0 2px 10px rgba(11, 99, 206, .08); }
.hsp-doc-card.pending { opacity: .7; }
.hsp-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--hsp-primary-soft); color: var(--hsp-primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex: none; text-transform: uppercase; }
.hsp-doc-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hsp-doc-info b { font-size: 15px; }
.hsp-doc-info .hsp-badge { align-self: flex-start; margin-top: 4px; }

.hsp-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.hsp-slot { display: flex; flex-direction: column; gap: 4px; text-align: left; background: #fff; border: 1px solid var(--hsp-line); border-radius: 12px; padding: 14px; cursor: pointer; }
.hsp-slot:hover:not([disabled]) { border-color: var(--hsp-primary); }
.hsp-slot.full { background: #fafafa; }
.hsp-slot .hsp-badge { align-self: flex-start; }

.hsp-list { margin-top: 10px; border: 1px solid var(--hsp-line); border-radius: 10px; overflow: hidden; }
.hsp-list-item { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #f0f2f5; padding: 10px 14px; cursor: pointer; }
.hsp-list-item:last-child { border-bottom: 0; }
.hsp-list-item:hover { background: #f6f9ff; }
.hsp-list-item.on { background: var(--hsp-primary-soft); }
.hsp-list p { margin: 10px 14px; }

.hsp-dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; }
.hsp-dl dt { color: var(--hsp-muted); font-weight: 500; }
.hsp-dl dd { margin: 0; }
.hsp-confirm { max-width: 640px; }
.hsp-done { text-align: center; max-width: 520px; padding: 32px; }
.hsp-done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--hsp-ok-soft); color: var(--hsp-ok); display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 12px; }
.hsp-done-serial { font-size: 18px; margin: 4px 0 8px; }
.hsp-done-serial b { font-size: 40px; color: var(--hsp-primary-dark); margin-left: 6px; }

/* ---- doctors ---- */
.hsp-seats { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hsp-bar { flex: 1; min-width: 120px; height: 8px; background: #eef0f4; border-radius: 4px; overflow: hidden; }
.hsp-bar span { display: block; height: 100%; background: var(--hsp-primary); border-radius: 4px; }
.hsp-bar span.full { background: var(--hsp-warn); }
.hsp-doc-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f0f2f5; flex-wrap: wrap; }
.hsp-doc-row:last-child { border-bottom: 0; }
.hsp-doc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hsp-edit { flex-basis: 100%; background: #fafbfd; border: 1px solid var(--hsp-line); border-radius: 10px; padding: 16px; margin-top: 8px; }
.hsp-sched { margin-top: 14px; }
.hsp-sched-label { font-size: 12px; font-weight: 600; color: #4b5563; margin-bottom: 6px; }
.hsp-daypick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.hsp-daypick button { width: 52px; height: 34px; border: 1px solid #cfd6e1; background: #fff; border-radius: 8px; font-weight: 600; cursor: pointer; }
.hsp-daypick button.on { background: var(--hsp-primary); border-color: var(--hsp-primary); color: #fff; }

/* ---- reports ---- */
.hsp-chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 8px 0; }
.hsp-chart-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.hsp-chart-col .booked { width: 100%; background: #c9dcf6; border-radius: 3px 3px 0 0; display: flex; align-items: flex-end; min-height: 2px; }
.hsp-chart-col .seen { width: 100%; background: var(--hsp-primary); border-radius: 3px 3px 0 0; }
.hsp-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: middle; }
.hsp-key.booked { background: #c9dcf6; }
.hsp-key.seen { background: var(--hsp-primary); }

/* ---- settings ---- */
.hsp-logo-pick { display: flex; align-items: center; gap: 10px; }
.hsp-logo-pick img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--hsp-line); border-radius: 10px; }
.hsp-logo-pick label.hsp-btn { flex-direction: row; font-size: 13px; color: var(--hsp-ink); font-weight: 500; }
.hsp-logo-pick input[type=file] { display: none !important; }
.hsp-link-box { display: flex; align-items: center; gap: 8px; background: #f6f8fc; border: 1px solid var(--hsp-line); border-radius: 8px; padding: 8px 10px; flex-wrap: wrap; }
.hsp-link-box code { background: transparent; color: var(--hsp-primary-dark); font-size: 13px; flex: 1; min-width: 0; word-break: break-all; }

/* ---- small screens ---- */
@media (max-width: 1024px) {
  .hsp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hsp-grid-split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hsp-top { padding: 10px 16px; }
  .hsp-hide-sm { display: none; }
  .hsp-menu-btn { display: inline-flex !important; }
  .hsp-body { display: block; padding: 16px; }
  .hsp-tabs { display: none; position: static; width: auto; background: #fff; border: 1px solid var(--hsp-line); border-radius: 12px; padding: 6px; margin-bottom: 16px; }
  .hsp-tabs.open { display: flex; }
  .hsp-grid-2, .hsp-grid-3, .hsp-grid-4 { grid-template-columns: 1fr; }
  .hsp-grid .span-2, .hsp-grid .span-3 { grid-column: auto; }
  .hsp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hsp-steps li { font-size: 12px; padding: 8px; }
  .hsp-steps li small { display: none; }
  .hsp-dl { grid-template-columns: 1fr; gap: 2px; }
  .hsp-dl dd { margin-bottom: 8px; }
  .hsp-toolbar { flex-direction: column; }
  .hsp .hsp-input-auto { width: 100%; }
  /* tables become stacked cards */
  .hsp-table thead { display: none; }
  .hsp-table, .hsp-table tbody, .hsp-table tr, .hsp-table td { display: block; width: 100%; }
  .hsp-table tr { border-bottom: 1px solid var(--hsp-line); padding: 8px 0; }
  .hsp-table td { border: 0; padding: 4px 16px !important; text-align: left !important; }
  .hsp-table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: inline-block; width: 90px; color: var(--hsp-muted); font-size: 12px; }
  .hsp-right { white-space: normal; }
}

/* =================== public hospital booking page =================== */
.hpub { background: var(--hsp-bg); min-height: 100vh; padding-bottom: 48px; }
.hpub-hero { background: linear-gradient(135deg, #0b63ce 0%, #0a4ea3 100%); color: #fff; padding: 32px 16px 72px; }
.hpub-hero-in { max-width: 960px; margin: 0 auto; padding: 0 16px; display: flex; gap: 16px; align-items: center; }
.hpub-hero img { width: 64px; height: 64px; border-radius: 14px; background: #fff; object-fit: contain; padding: 4px; flex: none; }
.hpub-hero h1 { margin: 0; font-size: 26px; font-weight: 700; color: #fff; }
.hpub-hero p { margin: 4px 0 0; opacity: .9; }
.hpub-wrap { max-width: 960px; margin: -48px auto 0; padding: 0 16px; }
.hpub .hsp-card { box-shadow: 0 4px 20px rgba(15, 23, 42, .06); }
.hpub-bn { display: block; font-size: 12px; color: var(--hsp-muted); font-weight: 400; }
.hpub-foot { text-align: center; color: var(--hsp-muted); font-size: 12px; margin-top: 24px; }
.hpub-foot a { color: var(--hsp-muted); text-decoration: underline; }
.hpub .hsp-input, .hpub input[type=text], .hpub input[type=tel], .hpub select {
  height: 42px; padding: 0 12px; border: 1px solid #cfd6e1; border-radius: 8px; background: #fff; font-size: 15px; width: 100%;
}
.hpub label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #4b5563; margin: 0; }
.hpub-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) {
  .hpub-hero h1 { font-size: 21px; }
  .hpub-hero { padding: 24px 16px 64px; }
}

/* =================== doctor side (hospital/doctor-side.js) =================== */
.hsp-invite { position: fixed; right: 20px; bottom: 20px; z-index: 1060; width: 380px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 10px; }
.hsp-invite-card { background: #fff; border: 1px solid #dbe3ee; border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); overflow: hidden; font-size: 13px; color: #1f2937; }
.hsp-invite-head { background: #0b63ce; color: #fff; padding: 12px 16px; font-size: 14px; }
.hsp-invite-body { padding: 12px 16px 4px; }
.hsp-invite-body ul { padding-left: 18px; margin: 8px 0; color: #374151; }
.hsp-invite-body li { margin-bottom: 4px; }
.hsp-invite-muted { color: #6b7280; }
.hsp-invite-err { background: #fdecea; color: #b42318; padding: 8px 10px; border-radius: 6px; margin: 6px 0; }
.hsp-invite-ok { background: #e6f4ec; color: #0f7a3d; padding: 8px 10px; border-radius: 6px; margin: 6px 0; }
.hsp-invite-actions { padding: 8px 16px 14px; }

.hsp-hh-btn { background: #e6f4ec; color: #0f7a3d; border: 1px solid #b7dfc7; white-space: nowrap; }
.hsp-hh-btn:hover { background: #d4ecdf; color: #0f7a3d; }
.hsp-hh-overlay { position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, .45); z-index: 1070; display: flex; justify-content: flex-end; }
.hsp-hh-sheet { background: #fff; width: 520px; max-width: 100vw; height: 100%; overflow-y: auto; padding: 0 0 24px; box-shadow: -8px 0 30px rgba(15, 23, 42, .2); text-align: left; color: #1f2937; font-size: 13px; }
.hsp-hh-head { position: sticky; top: 0; background: #fff; border-bottom: 1px solid #e5e7eb; padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; font-size: 14px; }
.hsp-hh-muted { color: #6b7280; font-size: 12px; }
.hsp-hh-loading, .hsp-hh-err { padding: 18px; }
.hsp-hh-err { color: #b42318; }
.hsp-hh-visit { margin: 14px 18px 0; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; line-height: 1.5; }
.hsp-hh-when { margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed #e5e7eb; }
.hsp-hh-k { display: inline-block; min-width: 70px; color: #6b7280; font-weight: 600; font-size: 12px; }
.hsp-hh-visit ol { margin: 2px 0 2px 18px; padding: 0; }
.hsp-hh-sheet > .hsp-hh-muted { padding: 18px; }
@media (max-width: 860px) { .hsp-invite { right: 16px; left: 16px; width: auto; bottom: 16px; } }
