/* =====================================================================
   無料ツールのページ(public/tools/〇〇/)で使う部品
   ---------------------------------------------------------------------
   ・ほかのページと同じ tokens.css と style.css を読み込んだうえで、このファイルを足す。
     ヘッダー・ツールの切り替えの帯・カード・ボタン・フッターは style.css のものをそのまま使う。
   ・開いてすぐ使う道具なので、飾り(背景の丸・キャラクター)や説明文は置かない。
   ・色・角の丸み・影は tokens.css の変数だけを使う(ここに色コードを書かない)。
   ・入力欄とボタンは指で押しやすい高さ(48px 以上)、文字は大きめにする。

   目次
     1. ページの枠・見出し・タブ      【<main class="tool-main">】【<div class="tabs">】
     2. ツールのカード・入力欄        【<section class="card tool">】【<div class="field">】
     3. 選択肢(20滴/60滴、計測時間) 【<fieldset class="seg">】
     4. 計算結果                      【<div class="result">】
     4-2. BMI の位置のバー            【<div class="bmi-bar">】
     5. 滴下カウンター                【<button class="tap">】
     6. 早見表・ホーム画面に追加      【<table class="quick">】【<div class="install">】
     7. 注意・フッター                【<details class="fine">】
     8. 印刷
     9. 略語一覧                      【tools/ryakugo/ の rk- で始まるクラス】
   ===================================================================== */

/* ===== 1. ページの枠・見出し・タブ ===== */
.tool-page {
  /* 画面の高さいっぱいに広げ、フッターを下に寄せる */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.tool-page main {
  flex: 1;
  width: 100%;
}
/* ヘッダーの高さ・ロゴの大きさは、全ツールページで同じにするため style.css の「2-2」に置いている
   (セルフチェックは tools.css を読まないため)。ページの見出し h1 は帯と同じ内容なので .sr-only で読み上げ用だけにしている。
   390×664 の1画面に「この滴下数と比べて数える」ボタンまで収める(npm run check:layout で確認)。 */
.tool-main {
  max-width: 560px;
  padding-top: 6px;
  padding-bottom: 24px;
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr; /* 「カウンター」だけ長いので広めに */
  gap: 4px;
  padding: 3px;
  margin-bottom: 6px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
}
.tab {
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  white-space: nowrap;
  font-weight: 700;
  cursor: pointer;
}
/* タブが2つのとき */
.tabs.tabs-2 {
  grid-template-columns: 1fr 1fr;
}
.tab[aria-selected='true'] {
  background: var(--mint);
  color: var(--on-mint);
}
.tab:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* ===== 2. ツールのカード・入力欄 ===== */
.tool {
  --card-radius: var(--radius-m);
  padding: 10px 12px 14px;
}
@media (min-width: 720px) {
  .tool {
    padding: 22px 24px;
  }
}
.fields {
  display: grid;
  gap: 10px;
}
/* 横に並べるとき(.fields-3 は 輸液量・時間・分、.fields-2 は 輸液セット・開始時刻) */
.fields-3 {
  grid-template-columns: 1.3fr 1fr 1fr;
}
.fields-2 {
  grid-template-columns: 1fr 1fr;
}
.fields-row2 {
  margin-top: 5px;
  /* 輸液セットは中身の幅、開始時刻は残りの幅(半分ずつだと 390px で「60滴/mL」が時刻の欄に重なる) */
  grid-template-columns: auto minmax(0, 1fr);
}
@media (max-width: 359px) {
  .fields-2 {
    grid-template-columns: 1fr;
  }
}
.field label,
.field .label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
}
.field .hint {
  font-weight: 400;
  color: var(--muted);
}
.field input[type='number'],
.field input[type='time'] {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 6px 12px;
  font: inherit;
  font-family: var(--f-data);
  font-size: 22px;
  color: var(--fg);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
}
.field input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
  border-color: var(--mint);
}
/* 入力欄の右につける単位(mL など) */
.unit-wrap {
  position: relative;
}
.unit-wrap input {
  padding-right: 40px;
}
.unit-wrap .unit {
  position: absolute;
  right: 10px;
  top: 50%;
  translate: 0 -50%;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
}
/* 押すボタン。.fill は塗り版、.ghost は目立たない版 */
.btn.fill {
  background: var(--mint);
  color: var(--on-mint);
}
.btn.fill:hover {
  background: var(--prob);
}
.btn.ghost {
  border-color: var(--line);
  color: var(--fg);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 5px;
}
.btn-row .btn {
  flex: 1 1 auto;
}
.btn-row .btn.ghost {
  flex: 0 0 auto;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* よく使う数値(チップ)。横1列。入らないときは横にスクロール */
.chips {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chips-label {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  min-width: 2.2em;
}
.chip {
  flex: 1 0 auto;
  min-height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-family: var(--f-data);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.chip[aria-pressed='true'] {
  border-color: var(--mint);
  background: var(--mint-bg);
  color: var(--mint);
}
.chip:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
/* 開始時刻 + 「今」 */
.time-wrap {
  display: flex;
  gap: 6px;
}
.time-wrap input {
  min-width: 0;
}
.btn.now {
  flex: none;
  min-height: 48px;
  padding: 0 14px;
}
/* 読み上げソフトにだけ伝える文字 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== 3. 選択肢(押して選ぶ札) ===== */
.seg {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.seg legend {
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
}
.seg-items {
  display: flex;
  gap: 6px;
}
.seg-items label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 48px;
  padding: 0 6px;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  border: 2px solid var(--line);
  background: var(--surface);
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.seg-items input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.seg-items label:has(:checked) {
  border-color: var(--mint);
  background: var(--mint-bg);
  color: var(--mint);
}
.seg-items label:has(:focus-visible) {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
/* 入力の仕方の切り替えは小さめ */
.seg-mode {
  margin-bottom: 8px;
}
.seg-mode .seg-items label {
  min-height: 34px;
  font-size: 14px;
}

/* ===== 4. 計算結果 ===== */
.result {
  margin-top: 5px;
  padding: 8px 14px;
  border-radius: 16px;
  background: var(--mint-bg);
}
.result .big {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(38px, 10vw, 52px);
  line-height: 1.1;
  color: var(--mint);
}
.result .big small {
  font-size: 0.4em;
  font-weight: 700;
  margin-left: 6px;
}
.result .sub {
  margin-top: 4px;
  font-size: 15px;
}
/* 流量・終了予定・計算式を1行に並べる */
.result .meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  font-size: 15px;
  font-family: var(--f-data);
  font-weight: 700;
}
.result .meta b {
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--muted);
  margin-right: 2px;
}
/* 計算式(折りたたみ。開くと式が下に出る) */
.formula {
  font-size: 14px;
  font-family: var(--f-body);
  font-weight: 400;
}
.formula[open] {
  flex-basis: 100%;
}
.formula summary {
  padding: 2px 0;
  font-weight: 700;
  color: var(--mint);
  cursor: pointer;
  list-style: none;
}
.formula summary::-webkit-details-marker,
.formula summary::after {
  display: none;
}
.formula summary::before {
  content: '▸ ' / '';
}
.formula[open] summary::before {
  content: '▾ ' / '';
}
.formula div {
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--f-data);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
/* 入力が足りないときの案内 */
.result.empty {
  background: var(--canvas);
  border: 1px dashed var(--grid);
  color: var(--muted);
  font-size: 15px;
}
/* 結果の箱の右上の小さなつなぴ(飾り。1ページに1つだけ。カウンターの結果には出さない)。
   JS が結果の中身を書き換えても消えないよう、HTML ではなく CSS で置く */
.result:not(.counter-result) {
  position: relative;
}
.result:not(.counter-result)::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 8px;
  width: 44px;
  height: 44px;
  background: url('../assets/character/c-front.svg') center / contain no-repeat;
  pointer-events: none;
}
.result.empty:not(.counter-result),
.result .big {
  padding-right: 50px;
}
/* 結果の中の札(BMI の判定・出納の「IN が多い」など。色だけで区別しない) */
.result .tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  vertical-align: middle;
}
/* 結果が2つ並ぶとき(希釈:元の液と薄める液) */
.result .pair {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-right: 50px; /* 右上のつなぴと重ならないように */
}
.result .pair .big {
  padding-right: 0;
}
.result .pair-label {
  display: block;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
/* いつも開いている計算式(γ計算は式を必ず見せる) */
.formula-open {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--f-data);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
/* 「確認用」の注意(γ計算)。色だけに頼らず「!」と文字で示す */
.confirm-note {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-s);
  background: var(--peach-bg);
  color: var(--peach);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.confirm-note::before {
  content: '!' / '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  translate: 0 2px;
}
/* 単位が長い入力欄(μg/kg/分・mL/kg/時 など) */
.unit-wrap.unit-long input {
  padding-right: 92px;
}
/* 水分出納:IN と OUT を左右に並べる */
.io {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.io fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.io legend {
  padding: 0;
  margin-bottom: 2px;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--mint);
}
.io .field label {
  font-size: 14px;
  margin-bottom: 2px;
}
.io .field input[type='number'] {
  min-height: 44px;
  font-size: 19px;
}

/* ===== 4-2. BMI の位置のバー(tools/bmi/) =====
   区分の境の数値・名前は bmi.js の BANDS が持ち、位置は style="left/width" と --at(0〜100)で渡す。
   色だけで区別しない:各区分に名前、区切りに濃い線、境の数値の目盛り、自分の位置に ▼(範囲外は端に ◀ ▶)。
   白黒印刷(背景色が消える)でも区切り・名前・印が読める */
.bmi-bar {
  position: relative;
  margin-top: 6px;
  font-family: var(--f-data);
}
/* 数値と ▼。数値はバーからはみ出さないよう、位置に合わせて横にずらす */
.bmi-marker {
  position: relative;
  height: 32px;
}
.bmi-marker .v,
.bmi-marker .m {
  position: absolute;
  left: calc(var(--at) * 1%);
  white-space: nowrap;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}
.bmi-marker .v {
  top: 0;
  translate: calc(var(--at) * -1%) 0;
  font-size: 14px;
}
.bmi-marker .m {
  bottom: 0;
  translate: -50% 0;
  font-size: 14px;
}
/* 範囲外は、矢印をバーの端の内側にそろえる */
.out-high .bmi-marker .m {
  translate: -100% 0;
}
.out-low .bmi-marker .m {
  translate: 0 0;
}
.bmi-track {
  position: relative;
  height: 30px;
  border: 1.5px solid var(--fg);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.bmi-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  border-left: 1.5px solid var(--fg);
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
}
.bmi-seg:first-child {
  border-left: 0;
}
.bmi-seg .l {
  display: none;
}
.bmi-seg-1 {
  background: var(--tx-bg);
}
.bmi-seg-2 {
  background: var(--mint-blob);
}
.bmi-seg-3 {
  background: var(--sym-bg);
}
.bmi-seg-4 {
  background: var(--peach-bg);
}
.bmi-seg-5 {
  background: var(--peach-blob);
}
.bmi-seg-6 {
  background: var(--path-bg);
}
/* 今の区分は名前を太字に */
.bmi-seg.now {
  font-weight: 700;
}
/* 区切りの数値(18.5・25・30・35・40) */
.bmi-ticks {
  position: relative;
  height: 17px;
}
.bmi-tick {
  position: absolute;
  top: 2px;
  translate: -50% 0;
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
}
.bmi-now {
  margin-top: 2px;
  font-size: 15px;
}
.bmi-note {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
/* 広い画面では区分の正式な名前を書く */
@media (min-width: 600px) {
  .bmi-seg .s {
    display: none;
  }
  .bmi-seg .l {
    display: inline;
  }
}

/* ===== 5. 滴下カウンター ===== */
.counter-body {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}
.tap {
  width: min(190px, 52vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  background: var(--mint);
  color: var(--on-mint);
  box-shadow: var(--shadow-accent);
  cursor: pointer;
  touch-action: manipulation; /* 2回タップの拡大を防ぐ */
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-content: center;
  gap: 2px;
  font: inherit;
}
.tap:active {
  transform: scale(0.96);
}
.tap:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}
.tap .count {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
}
.tap .tap-label {
  font-size: 16px;
  font-weight: 700;
}
/* 計測が終わったあとは押せない見た目に */
.tap[aria-disabled='true'] {
  background: var(--risk-bg);
  color: var(--risk);
  box-shadow: none;
  cursor: default;
}
.timer {
  font-size: 15px;
  font-weight: 700;
  min-height: 1.5em;
}
.counter-result {
  width: 100%;
  margin-top: 0;
  text-align: left;
}
/* 目標との比べ方(色だけでなく文字でも示す) */
.compare-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  background: var(--surface);
  color: var(--mint);
}
.compare-tag.off {
  background: var(--sym-bg);
  color: var(--sym);
}

/* ===== 6. 早見表 ===== */
.quick {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-data);
  font-size: 15px;
  text-align: right;
}
.quick caption {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  padding-bottom: 8px;
}
.quick th,
.quick td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
}
.quick thead th {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  border-bottom: 2px solid var(--line);
}
.quick tbody th {
  text-align: left;
  color: var(--mint);
}
/* 20滴と60滴の境目に縦線 */
.quick th:nth-child(3),
.quick td:nth-child(3) {
  border-right: 1px solid var(--line);
}
.quick tbody tr:nth-child(even) {
  background: var(--canvas);
}
.table-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* ===== 6-2. ホーム画面に追加 ===== */
.install {
  margin-top: 12px;
}
.install-btn {
  width: 100%;
}
/* .btn の display が hidden 属性より強いので、隠すときは明示する(Android で「追加」できるときだけ出す) */
.install-btn[hidden] {
  display: none;
}
.install-btn::before {
  content: '+';
  font-size: 20px;
  margin-right: 8px;
  line-height: 1;
}
/* iPhone 用の1行の案内(目立たせすぎない) */
.install-ios {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ===== 7. 注意・フッター ===== */
.fine {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.fine summary {
  padding: 10px 0;
  font-weight: 700;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
}
.fine summary::-webkit-details-marker,
.fine summary::after {
  display: none; /* style.css の「+/−」の丸は使わず、先頭の記号だけにする */
}
.fine summary::before {
  content: '▸ ' / '';
}
.fine[open] summary::before {
  content: '▾ ' / '';
}
.fine ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}
.tool-footer {
  padding: 16px 0 24px;
  font-size: 14px; /* 注意書きなので、小さくしすぎない */
}

/* ===== 8. 印刷 ===== */
@media print {
  .tabs,
  .tap,
  .btn-row,
  .install {
    display: none;
  }
  /* タブで隠している面もすべて印刷する */
  .tool[hidden] {
    display: block;
  }
  .tool + .tool {
    margin-top: 16px;
  }
  .result {
    border: 1px solid #999;
    background: none;
  }
  .result::after {
    display: none;
  }
  /* 背景色が消えても、区切りの線・名前・印で読める。今の区分は下線でも示す */
  .bmi-seg.now {
    text-decoration: underline;
  }
  .fine ul {
    display: block;
  }
  .formula div {
    display: block;
  }
}

/* ===== 9. 略語一覧(tools/ryakugo/) =====
   検索欄とカテゴリのチップを上に、語の一覧をその下に並べる。大文字・小文字の区別と「注意」は、色だけでなく札の文字で示す。 */
.rk-draft {
  margin: 0 0 6px;
  padding: 6px 12px;
  border: 1.5px solid var(--peach);
  border-radius: var(--radius-s);
  background: var(--peach-bg);
  color: var(--peach);
  font-size: 14px;
  text-align: center;
}
/* 検索欄とチップは、スクロールしても最初の位置から動かさない。一覧を見ながら探し直せるように。
   そのため、このページだけツールの切り替えの帯もヘッダーの下に止める(読み込んだときの位置・高さは変えない)。
   検索欄の top = ヘッダー + 帯の高さ(48px)+ 帯との間(6px)= 最初の位置 */
body:has(.rk-search) .tool-switch {
  position: sticky;
  top: var(--header-h);
  z-index: 6;
  background: var(--bg);
}
.rk-search {
  position: sticky;
  top: calc(var(--header-h) + 54px);
  z-index: 5;
  /* ヘッダーとのすき間から後ろの一覧がのぞかないように、上を背景の色で埋める */
  box-shadow:
    0 -16px 0 var(--bg),
    var(--shadow);
}
.rk-q {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 6px 12px;
  font: inherit;
  font-size: 18px;
  color: var(--fg);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
}
.rk-q:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
  border-color: var(--mint);
}
.rk-cats .chip {
  flex: none;
  font-family: inherit;
  font-size: 14px;
}
.rk-n {
  margin-left: 4px;
  font-weight: 400;
  color: var(--muted);
}
.rk-count {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.rk-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.rk-item {
  padding: 10px 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
}
.rk-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}
.rk-abbr {
  font-family: var(--f-data);
  font-size: 22px;
  font-weight: 700;
  color: var(--prob);
  overflow-wrap: anywhere;
}
.rk-ja {
  font-size: 16px;
  font-weight: 700;
}
.rk-cat {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.rk-item p {
  margin: 4px 0 0;
  font-size: 14px;
}
.rk-full {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.rk-case,
.rk-note {
  color: var(--fg);
}
.rk-tag {
  display: inline-block;
  margin-right: 2px;
  padding: 0 6px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
}
.rk-case .rk-tag {
  color: var(--mint);
}
.rk-note .rk-tag {
  color: var(--peach);
}
.rk-none {
  margin: 12px 0 0;
  color: var(--muted);
}
.rk-updated {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}
@media print {
  .rk-search,
  body:has(.rk-search) .tool-switch {
    position: static;
  }
  .rk-search .chips {
    display: none;
  }
  .rk-item {
    break-inside: avoid;
  }
}
