 
:root {
  --fki-c: var(--accent, #0a64c8);               
  --fki-on: var(--on-accent, #ffffff);           
  --fki-hover: var(--select-bg, #cce4f7);
  --fki-bg: var(--panel, #ffffff);
  --fki-bg-2: var(--panel-2, #f6f6f6);
  --fki-text: var(--text, #000000);
  --fki-text-2: var(--text-2, #1f1f1f);
  --fki-muted: var(--muted, #5a5a5a);
  --fki-line: var(--ink, #a0a0a0);
  --fki-frame: var(--ink, #a0a0a0);              
  --fki-line-2: var(--line-2, #c9c9c9);
  --fki-line-3: var(--line, #e3e3e3);
  --fki-title-1: var(--title-1, #fdfdfd);
  --fki-title-2: var(--title-2, #e7e7e7);
  --fki-hint: var(--tooltip, #ffffe1);           
  --fki-hint-line: var(--tooltip-line, #767676);
  --fki-shadow: var(--shadow-ink, rgba(0, 0, 0, 0.18));
  --fki-target: var(--select-bg, #cce4f7);       
  --fki-target-line: var(--select-line, #99c9ef);
  --fki-scrim: rgba(0, 0, 0, 0.34);              
  --fki-font: var(--sans, Tahoma, "Segoe UI", Verdana, system-ui, sans-serif);
}
:root[data-theme="dark"] {
  --fki-frame: var(--faint, #727272);            
  --fki-scrim: rgba(0, 0, 0, 0.58);
}

 
.fki-w { white-space: nowrap; }
.fki-w::before { content: "\2060"; }
.fki-w[data-fki-w="after"] { margin-left: 1px; }
button.fki[type="button"] {
  -webkit-appearance: none; appearance: none; box-sizing: border-box; position: relative;
  display: inline-block; vertical-align: -0.2em; flex: none;
  width: max(14px, 1.17em); height: max(14px, 1.17em); min-width: 0; min-height: 0;
  margin: 0 0 0 3px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; box-shadow: none; color: var(--fki-c); cursor: pointer;
  font: inherit; line-height: 1; letter-spacing: 0; text-transform: none; text-indent: 0;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
 
button.fki[type="button"]::after { content: ""; position: absolute; left: -7px; right: -7px; top: -7px; bottom: -7px; border-radius: 50%; }
@media (pointer: coarse) {
   
  button.fki[type="button"]::after { left: -10px; right: -10px; top: -10px; bottom: -10px; border-radius: 6px; }
}
.fki > svg.fki-svg { display: block; width: 100%; height: 100%; margin: 0; overflow: visible; pointer-events: none; }
.fki-ring { fill: transparent; stroke: currentColor; stroke-width: 1.4; }
.fki-dot, .fki-stem { fill: currentColor; stroke: none; }
button.fki[type="button"]:hover { background: transparent; border: 0; }
button.fki[type="button"]:hover .fki-ring { fill: var(--fki-hover); }
button.fki[type="button"][aria-expanded="true"] .fki-ring { fill: currentColor; }
button.fki[type="button"][aria-expanded="true"] .fki-dot,
button.fki[type="button"][aria-expanded="true"] .fki-stem { fill: var(--fki-on); }
button.fki[type="button"]:focus { outline: none; }
button.fki[type="button"]:focus-visible { outline: 2px solid var(--fki-c); outline-offset: 2px; }
 
[data-fk-info-tone="dark"] > .fki-w > .fki, [data-fk-info-tone="dark"] + .fki-w > .fki { --fki-c: #9cc7ff; --fki-hover: rgba(156, 199, 255, 0.25); --fki-on: #0b0f16; }

 
.fki-pop {
  position: fixed; z-index: 1000; left: 0; top: 0; box-sizing: border-box;
  display: flex; flex-direction: column; width: max-content; max-width: min(340px, calc(100vw - 16px));
  margin: 0; padding: 0; overflow: visible;
  font: 400 12px/1.5 var(--fki-font); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal;
  color: var(--fki-text); background: var(--fki-bg);
  border: 1px solid var(--fki-frame); border-radius: var(--radius, 2px); box-shadow: 2px 3px 10px var(--fki-shadow);
}
.fki-pop[hidden], .fki-scrim[hidden] { display: none; }
.fki-pop:focus { outline: none; }
.fki-pop:focus-visible { outline: 1px dotted var(--fki-text); outline-offset: -4px; }
.fki-pop-h {
  flex: none; display: flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 3px 2px 9px;
  background: linear-gradient(var(--fki-title-1), var(--fki-title-2)); border-bottom: 1px solid var(--fki-line);
}
.fki-pop-t { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.fki-x {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; box-sizing: border-box;
  width: 22px; height: 20px; min-width: 0; min-height: 0; margin: 0; padding: 0;
  display: inline-grid; place-items: center; cursor: pointer;
  font: 400 15px/1 var(--fki-font); color: var(--fki-text);
  background: transparent; border: 1px solid transparent; border-radius: 2px;
}
.fki-x::after { content: ""; position: absolute; left: -4px; right: -4px; top: -5px; bottom: -5px; }
.fki-x:hover { background: var(--fki-hover); border-color: var(--fki-c); }
.fki-x:focus-visible { outline: 2px solid var(--fki-c); outline-offset: 1px; }
.fki-x-i { display: block; margin-top: -1px; pointer-events: none; }
.fki-pop-b { flex: 1 1 auto; min-height: 0; padding: 8px 10px 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.fki-pop-b > p { margin: 0 0 6px; max-width: none; font: inherit; color: inherit; overflow-wrap: break-word; }
.fki-pop-b > .fki-rule, .fki-pop-b > .fki-ex {
  padding: 4px 7px; font-size: 11.5px; line-height: 1.45; font-variant-numeric: tabular-nums;
  border: 1px solid var(--fki-line-2); background: var(--fki-bg-2); color: var(--fki-text);
}
.fki-pop-b > .fki-ex { border-color: var(--fki-hint-line); background: var(--fki-hint); }
.fki-k { font-weight: 700; }
.fki-pop-f { flex: none; padding: 2px 10px 8px; }
.fki-more { display: inline-block; padding: 2px 0; color: var(--fki-c); text-decoration: none; }
.fki-more:hover { text-decoration: underline; }
.fki-more:focus-visible { outline: 2px solid var(--fki-c); outline-offset: 2px; }
 
.fki-arrow { position: absolute; left: 12px; width: 9px; height: 9px; box-sizing: border-box; border: 1px solid var(--fki-frame); transform: rotate(45deg); pointer-events: none; }
.fki-pop[data-side="bottom"] > .fki-arrow { top: -5px; border-right-color: transparent; border-bottom-color: transparent; background: var(--fki-title-1); }
.fki-pop[data-side="top"] > .fki-arrow { bottom: -5px; border-left-color: transparent; border-top-color: transparent; background: var(--fki-bg); }
.fki-pop:not([data-side]) > .fki-arrow { display: none; }

 
.fki-scrim { position: fixed; z-index: 999; left: 0; top: 0; right: 0; bottom: 0; background: var(--fki-scrim); touch-action: none; }
.fki-pop[data-mode="sheet"] {
  left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; max-height: min(80vh, 560px);
  font-size: 13px; line-height: 1.55; border-width: 1px 0 0; border-radius: 0; box-shadow: 0 -3px 14px var(--fki-shadow);
}
.fki-pop[data-mode="sheet"] > .fki-pop-h { min-height: 38px; padding: 4px 6px 4px 12px; }
.fki-pop[data-mode="sheet"] .fki-pop-t { font-size: 14px; }
.fki-pop[data-mode="sheet"] .fki-x { width: 34px; height: 30px; font-size: 19px; }
.fki-pop[data-mode="sheet"] > .fki-pop-b { padding: 10px 12px 2px; }
.fki-pop[data-mode="sheet"] > .fki-pop-b > p { margin-bottom: 8px; }
.fki-pop[data-mode="sheet"] > .fki-pop-b > .fki-rule, .fki-pop[data-mode="sheet"] > .fki-pop-b > .fki-ex { padding: 6px 9px; font-size: 12.5px; }
.fki-pop[data-mode="sheet"] > .fki-pop-f { padding: 2px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.fki-pop[data-mode="sheet"] .fki-more { padding: 6px 0; }
.fki-pop[data-mode="sheet"] > .fki-arrow { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .fki-pop[data-mode="sheet"] { animation: fki-rise 0.16s ease-out; }
  .fki-scrim { animation: fki-fade 0.16s ease-out; }
}
@keyframes fki-rise { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fki-fade { from { opacity: 0; } to { opacity: 1; } }

 
.fki-gloss { margin: 8px 0 14px; padding: 0; max-width: 980px; border: 1px solid var(--fki-line); background: var(--fki-bg); }
.fki-gloss > div { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 2px 14px; padding: 6px 10px 7px; border-bottom: 1px solid var(--fki-line-3); }
.fki-gloss > div:last-child { border-bottom: 0; }
.fki-gloss dt { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.fki-gloss dd { margin: 0; min-width: 0; }
.fki-gloss dd > p { margin: 0 0 4px; max-width: none; }
.fki-gloss dd > p:last-child { margin-bottom: 0; }
.fki-gloss .fki-g-rule, .fki-gloss .fki-g-ex { font-size: 12px; line-height: 1.5; color: var(--fki-text-2); font-variant-numeric: tabular-nums; }
.fki-gloss .fki-g-ex { padding: 2px 7px; border: 1px solid var(--fki-hint-line); background: var(--fki-hint); color: var(--fki-text); }
.fki-gloss .fki-g-see { font-size: 12px; color: var(--fki-muted); }
.fki-gloss > div:target { background: var(--fki-target); outline: 1px solid var(--fki-target-line); outline-offset: -1px; }
@media (max-width: 640px) {
  .fki-gloss > div { grid-template-columns: minmax(0, 1fr); padding: 7px 9px 8px; }
}

@media print {
  .fki-w, .fki-pop, .fki-scrim { display: none !important; }
}
