 
.fkask-launch {
  position: fixed; z-index: 80;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--fkask-lift, 0px) + var(--fk-tabbar-stack, 0px));
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px;
  font: inherit; font-size: 14.5px; font-weight: 700; line-height: 1; letter-spacing: .01em;
  color: var(--on-accent); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; cursor: pointer;
  box-shadow: 0 4px 16px var(--shadow-ink);
  transition: transform .15s ease, opacity .15s ease;    
}
.fkask-launch:hover { transform: translateY(-1px); }
.fkask-launch:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.fkask-launch .fkask-ico { width: 22px; height: 22px; }
.fkask-ico { display: block; flex: none; width: 18px; height: 18px; }
.fkask-ico-l { stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; }
.fkask-launch .fkask-ico-l { stroke: var(--accent); }
.fkask-launch .fkask-ico path:first-child { fill: var(--on-accent); }
.fkask-compact { width: 52px; min-height: 52px; height: 52px; padding: 0; justify-content: center; }
.fkask-compact .fkask-launch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fkask-launch.fkask-away, .fkask-on .fkask-launch { opacity: 0; pointer-events: none; visibility: hidden; }

.fkask-scrim { position: fixed; inset: 0; z-index: 89; background: var(--shadow-ink); }
.fkask-scrim[hidden], .fkask-panel[hidden] { display: none; }
.fkask-panel {
  position: fixed; z-index: 90; box-sizing: border-box;
  top: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); right: calc(12px + env(safe-area-inset-right, 0px));
  width: min(400px, calc(100vw - 24px));
  display: flex; flex-direction: column; overflow: hidden;
  color: var(--text); background: var(--panel-solid);
  border: 1px solid var(--ink); border-radius: 8px;
  box-shadow: 0 10px 32px var(--shadow-ink);
  font-size: 14px; line-height: 1.5;
}
.fkask-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; flex: none;
  border-bottom: 1px solid var(--line); color: var(--accent);
}
.fkask-head .fkask-ico-l { stroke: var(--panel-solid); }
.fkask-title { margin: 0; flex: 1; min-width: 0; font-size: 15px; font-weight: 800; color: var(--text); }
.fkask-hbtn {
  min-width: 40px; min-height: 36px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 4px;
}
.fkask-close { font-size: 20px; line-height: 1; }
.fkask-hbtn:hover { background: var(--select-bg); }
.fkask-hbtn:focus-visible, .fkask-chip:focus-visible, .fkask-send:focus-visible, .fkask-link:focus-visible,
.fkask-log:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fkask-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px; }
.fkask-intro .fkask-p { color: var(--muted); }
.fkask-sugg { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; }
.fkask-chip {
  text-align: left; min-height: 40px; padding: 8px 12px; font: inherit; font-size: 13.5px; cursor: pointer;
  color: var(--text); background: var(--accent-bg); border: 1px solid var(--select-line); border-radius: 6px;
}
.fkask-chip:hover { border-color: var(--accent); }
.fkask-msg { margin: 10px 0; max-width: 100%; }
.fkask-who { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.fkask-body { padding: 8px 11px; border-radius: 8px; overflow-wrap: anywhere; word-break: break-word; }
.fkask-me .fkask-body { background: var(--accent-bg); border: 1px solid var(--select-line); }
.fkask-ai .fkask-body { background: var(--bg); border: 1px solid var(--line); }
.fkask-wait .fkask-body { color: var(--muted); font-style: italic; }
.fkask-p { margin: 0 0 6px; }
.fkask-p:last-child { margin-bottom: 0; }
.fkask-ul { margin: 2px 0 6px; padding-left: 20px; }
.fkask-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fkask-link {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; font-size: 13px; font-weight: 700;
  color: var(--accent); text-decoration: none; border: 1px solid var(--select-line); border-radius: 999px;
}
.fkask-link:hover { background: var(--select-bg); }
 
.fkask-form[hidden], .fkask-hbtn[hidden] { display: none; }
.fkask-lock { padding: 14px; background: var(--accent-bg); border: 1px solid var(--select-line); border-radius: 8px; }
.fkask-lock-title { margin: 0 0 6px; font-weight: 800; font-size: 15px; color: var(--text); }
.fkask-lock-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fkask-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px;
  font-weight: 800; text-decoration: none; color: var(--on-accent); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 6px;
}
.fkask-cta-ghost { color: var(--accent); background: transparent; border-color: var(--select-line); }
.fkask-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
 
.fkask-body-card { padding: 0; background: transparent; border: 0; }
.fkask-ai .fkask-body-card { background: transparent; border: 0; }
.fkask-card { padding: 10px 11px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.fkask-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.fkask-badge {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; font-size: 12.5px; font-weight: 800;
  border-radius: 999px; border: 1px solid var(--line); color: var(--text); background: var(--panel);
}
.fkask-st-good { color: var(--up-on-tint); background: var(--up-bg); border-color: var(--up); }
.fkask-st-info { color: var(--text); background: var(--info-bg); border-color: var(--info); }
.fkask-st-warn { color: var(--text); background: var(--warn-bg); border-color: var(--warn); }
.fkask-st-bad { color: var(--down-on-tint); background: var(--down-bg); border-color: var(--down); }
.fkask-st-mute { color: var(--muted); }
.fkask-card-by { font-size: 11.5px; color: var(--muted); }
.fkask-card-p { margin: 0 0 6px; }
.fkask-card-k { font-weight: 700; color: var(--text); }
.fkask-card-h { margin: 8px 0 2px; font-size: 13px; }
.fkask-card-dim { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.fkask-card-foot { margin: 8px 0 0; padding-top: 6px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.fkask-cites li { font-size: 12.5px; }
.fkask-tbl-wrap { max-width: 100%; overflow-x: auto; margin: 4px 0 6px; }
.fkask-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fkask-tbl th { text-align: left; font-weight: 700; color: var(--muted); padding: 3px 6px 3px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fkask-tbl td { padding: 4px 6px 4px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fkask-num { font-family: var(--mono); white-space: nowrap; }
.fkask-tbl-v { white-space: nowrap; }
.fkask-tbl-sub { display: block; font-size: 11.5px; color: var(--muted); }
.fkask-lock-k { margin: 10px 0 2px; font-weight: 700; }
.fkask-form { flex: none; padding: 10px 14px 6px; border-top: 1px solid var(--line); }
.fkask-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fkask-input {
  display: block; box-sizing: border-box; width: 100%; min-height: 48px; max-height: 140px; resize: vertical;
  padding: 8px 10px; font: inherit; font-size: 16px; color: var(--text); background: var(--panel);
  border: 1px solid var(--ink); border-radius: 6px;
}
.fkask-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.fkask-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.fkask-count { font-size: 11.5px; color: var(--muted); }
.fkask-send {
  min-height: 40px; min-width: 84px; padding: 0 16px; font: inherit; font-weight: 800; cursor: pointer;
  color: var(--on-accent); background: var(--accent); border: 1px solid var(--accent); border-radius: 6px;
}
.fkask-send:disabled { opacity: .55; cursor: progress; }
.fkask-foot { flex: none; margin: 0; padding: 0 14px 10px; font-size: 11.5px; color: var(--muted); }

 
 
@media (max-width: 640px) {
  .fkask-launch { right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--fkask-lift, 0px) + var(--fk-tabbar-stack, 0px));
    min-height: 46px; font-size: 14px; padding: 0 14px 0 12px; }
  .fkask-compact { width: 48px; height: 48px; min-height: 48px; padding: 0; }
   
  .fkask-launch { width: 48px; height: 48px; min-height: 48px; padding: 0; justify-content: center; }
  .fkask-launch .fkask-launch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fkask-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(86vh, 640px); height: min(86dvh, 640px);
    border-radius: 14px 14px 0 0; border-left: 0; border-right: 0; border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px); }
  .fkask-on, .fkask-on body { overflow: hidden; }
   
  .fkask-ready body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px) + var(--fk-tabbar-h, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .fkask-launch { transition: none; } .fkask-launch:hover { transform: none; } }
@media print { .fkask-launch, .fkask-panel, .fkask-scrim { display: none !important; } }
