/* 予算簿（よさんぼ）— 今日使っていい額を出すアプリ
 *
 * デザインの方針（みんなの銀行のデザイン原則を参考にしている）:
 *   モノクロ基調   … 黒地に白。色は「状態」を伝えるためだけに使う
 *   ポイントを絞る … 主役の「今日いくら」だけ白地に反転させて飛び出させる
 *   ストレート     … 枠線を使わず、地の色の差だけで区切る
 *   ミニマル       … タグ・影・装飾を削り、余白と文字の太さで階層を作る
 *
 * 普段の画面に色は出ない。残りわずか・超過のときだけ色が出るので、
 * 色が見えたら異常、という読み方ができる。
 */

/* ---------------------------------------------------------------- トークン */

/* 暗い側を主とした設計。明るい側も同じモノクロの規律で用意する。 */
:root {
  --ground: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #ebebed;
  --surface-3: #e0e0e3;

  --ink: #0a0a0b;
  --ink-2: #55555c;
  --ink-3: #8a8a92;
  --line: #dededf;

  /* 主役カード: 明るい側では地と反転させて黒にする */
  --hero-bg: #0a0a0b;
  --hero-ink: #ffffff;
  --hero-ink-2: #9b9ba3;

  /* アクセント。操作できるもの・選択中のものにだけ使う */
  --accent: #0067c0;
  --accent-ink: #ffffff;

  /* 曜日の色。土は青、日と祝は赤 */
  --dow-sat: #0067c0;
  --dow-sun: #d0342c;

  /* 状態色。アクセントとは別系統で、警告のためだけに使う */
  --good: #12a150;
  --warning: #d98a00;
  --critical: #e0322e;

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 460px;
  --tabbar: 66px;

  --sans: "M PLUS 2", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0a0a0b;
    --surface: #16161a;
    --surface-2: #1f1f24;
    --surface-3: #2a2a30;

    --ink: #ffffff;
    --ink-2: #a1a1a9;
    --ink-3: #6e6e77;
    --line: #2a2a30;

    /* 暗い側では主役を白にする。黒い画面の中で最も強い要素になる */
    --hero-bg: #ffffff;
    --hero-ink: #0a0a0b;
    --hero-ink-2: #6e6e77;

    /* 暗い地の上では #0067c0 は沈むので明度を上げる */
    --accent: #4da3ff;
    --accent-ink: #061726;
    --dow-sat: #4da3ff;
    --dow-sun: #ff6b63;

    --good: #3ecf72;
    --warning: #f5b437;
    --critical: #ff5a55;
  }
}

:root[data-theme="dark"] {
  --ground: #0a0a0b;
  --surface: #16161a;
  --surface-2: #1f1f24;
  --surface-3: #2a2a30;
  --ink: #ffffff;
  --ink-2: #a1a1a9;
  --ink-3: #6e6e77;
  --line: #2a2a30;
  --hero-bg: #ffffff;
  --hero-ink: #0a0a0b;
  --hero-ink-2: #6e6e77;
  --accent: #4da3ff;
  --accent-ink: #061726;
  --dow-sat: #4da3ff;
  --dow-sun: #ff6b63;
  --good: #3ecf72;
  --warning: #f5b437;
  --critical: #ff5a55;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px calc(var(--tabbar) + 28px);
}

/* ---------------------------------------------------------------- ヘッダー */

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 20px 14px;
}

.topbar-id { flex: 1; min-width: 0; }

.topbar h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* アプリが何をするものかを開いた瞬間に示す */
.tagline {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ログイン中のアカウント。頭文字だけ出し、押すと全体が見られる。
   別アカウントで入ると空のデータが出るので、気づける手がかりを常に置く */
.whoami {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.whoami:hover { opacity: 0.85; }
.whoami:active { transform: scale(0.94); }

/* 丸ボタン。枠線ではなく地の差で存在を示す */
.iconbtn {
  flex: 0 0 auto;
  border: 0;
  background: var(--surface-2);
  color: var(--ink-2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}

.iconbtn:hover { background: var(--surface-3); color: var(--ink); }
.iconbtn:active { transform: scale(0.94); }

/* ------------------------------------------------------ 主役「今日いくら」 */

/* 画面の中で唯一反転している要素。色を使わずに最も目立たせる。 */
.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  border-radius: var(--radius);
  padding: 30px 22px 22px;
  text-align: center;
  transition: background 0.3s ease;
}

/* 状態が悪化したときだけ色が出る */
.hero.is-warning { background: var(--warning); color: #0a0a0b; }
.hero.is-critical { background: var(--critical); color: #ffffff; }

.hero-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.55;
  margin-bottom: 10px;
  /* 日付を含むので長くなる。狭い画面でも折り返して収める */
  line-height: 1.4;
  text-wrap: balance;
}

/* 主役数値。桁が揺れないようプロポーショナル数字のまま使う */
.hero-fig {
  font-size: clamp(3.1rem, 19vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero-sub {
  font-size: 12.5px;
  font-weight: 400;
  opacity: 0.6;
  margin-top: 10px;
  min-height: 1.6em;
}

.promise {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.75;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 14%, transparent);
}

.promise b { font-weight: 700; opacity: 1; }

/* 状態バッジ。色だけに意味を持たせず必ず文字を添える */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px 4px 8px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.good { color: var(--good); }
.badge.warning { color: var(--warning); }
.badge.critical { color: var(--critical); }

/* ---------------------------------------------------------------- メーター */

.meter-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 9px;
}

.meter-row .val {
  color: var(--ink-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.meter {
  height: 6px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.meter-fill.warning { background: var(--warning); }
.meter-fill.critical { background: var(--critical); }

/* ---------------------------------------------------------------- カード */

/* 枠線を使わない。地の色の差だけで区切る */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
}

.stack { display: flex; flex-direction: column; gap: 12px; }

.sec-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin: 0 0 14px;
}

.muted { color: var(--ink-3); font-size: 12.5px; line-height: 1.7; }

/* ---------------------------------------------------------------- 予定の行 */

.plan {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.plan:first-of-type { border-top: 0; padding-top: 0; }

.plan-check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  cursor: pointer;
  accent-color: var(--ink);
}

.plan.nospend { opacity: 0.38; }

.plan-day {
  flex: 0 0 44px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.plan-main { flex: 1; min-width: 0; }

.plan-title {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.plan-meta {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

/* 枠を持たせず、文字だけで種別を示す */
.tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
}

.tag.est { color: var(--ink-2); font-weight: 700; }
.tag.sp { color: var(--warning); font-weight: 700; }

.plan-amt {
  flex: 0 0 auto;
  text-align: right;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 1px;
}

.plan-amt.zero { color: var(--ink-3); font-weight: 400; }

.plan-actions { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }

/* 予定タブの区切り。一覧ではなく「やることリスト」に見せる */
.plan-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 26px 0 14px;
}

.plan-section:first-child { margin-top: 0; }

.plan-section-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.plan-section-count {
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan-collapse { margin-top: 26px; }

.plan-collapse > summary {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  padding: 6px 0;
  list-style: none;
}

.plan-collapse > summary::-webkit-details-marker { display: none; }
.plan-collapse > summary::before { content: "＋ "; }
.plan-collapse[open] > summary::before { content: "− "; }
.plan-collapse > summary:hover { color: var(--ink-2); }
.plan-collapse[open] > summary { margin-bottom: 10px; }

/* --------------------------------------------- 行の中に出す金額入力 */

.plan-editor {
  margin-top: 12px;
  padding: 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.plan-editor label {
  font-size: 12px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.plan-editor-line { display: flex; gap: 7px; }
.plan-editor-line input { flex: 1; min-width: 0; }
.plan-editor-line .btn { flex: 0 0 auto; align-self: stretch; }

/* --------------------------------------------- 確認ダイアログ */

dialog.sheet {
  border: 0;
  padding: 0;
  background: none;
  max-width: min(360px, calc(100vw - 36px));
  width: 100%;
}

dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.66); }

.sheet-body {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
}

.sheet-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.sheet-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.sheet-actions { display: flex; gap: 10px; margin-top: 22px; }
.sheet-actions .btn { flex: 1; }

/* ---------------------------------------------------------------- 日カレンダー */

.cal-head,
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-head {
  margin-bottom: 7px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  text-align: center;
}

.cal-head .sat { color: var(--dow-sat); font-weight: 700; }
.cal-head .sun { color: var(--dow-sun); font-weight: 700; }

/* 1日のセル。枠線ではなく地の濃さで状態を分ける */
.cell {
  min-height: 54px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 1px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.cell .d { font-size: 11px; line-height: 1.1; }

/* 土は青、日と祝は赤。祝日は Google の「日本の祝日」カレンダーから取る */
.cell.sat .d { color: var(--dow-sat); font-weight: 700; }
.cell.sun .d,
.cell.holiday .d { color: var(--dow-sun); font-weight: 700; }

/* 金額はセル幅（スマホで約46px）に収まるよう万単位に丸めて出す */
.cell .amt {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.cell .amt.income { color: var(--ink); }
.cell .amt.plan { font-weight: 500; opacity: 0.6; }

.cell.past { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.cell.spent { background: var(--surface-3); }
.cell.spent .amt { color: var(--ink); }

/* 今日だけ反転させる。枠線を足さずに一番強くする */
.cell.today {
  background: var(--ink);
  color: color-mix(in srgb, var(--ground) 70%, transparent);
}

/* 反転しているので曜日の色より地との対比を優先する */
.cell.today .d,
.cell.today.sat .d,
.cell.today.sun .d,
.cell.today.holiday .d { color: var(--ground); font-weight: 800; }
.cell.today .amt { color: var(--ground); }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 11px;
  color: var(--ink-3);
}

.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

.swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--surface-3);
  display: inline-block;
}

.swatch.s-spent { background: var(--surface-3); }
.swatch.s-today { background: var(--ink); }
.swatch.s-plan,
.swatch.s-income {
  background: none;
  width: auto;
  height: auto;
  font-weight: 700;
  font-size: 10.5px;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- 入力 */

label {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 7px;
}

input[type="number"],
input[type="text"],
input[type="date"],
select {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* iOS の自動ズームを防ぐため16px以上 */
  font-weight: 500;
  padding: 13px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

input::placeholder { color: var(--ink-3); font-weight: 400; }

input:focus-visible,
select:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink-2);
  outline-offset: 2px;
}

.field { margin-bottom: 15px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.row .narrow { flex: 0 0 86px; }

/* ---------------------------------------------------------------- ボタン */

.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.ghost:hover { background: var(--surface-3); opacity: 1; }
.btn.sm { width: auto; padding: 8px 13px; font-size: 12.5px; font-weight: 600; }
.btn.danger { background: var(--surface-2); color: var(--critical); }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 99px;
  border: 0;
  background: var(--surface-2);
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.chip:hover { background: var(--surface-3); color: var(--ink-2); }

.chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.chip:disabled { opacity: 0.45; cursor: default; }

/* ------------------------------------------------- 設定内のサブタブ切り替え */

.subtabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border-radius: 99px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subtabs::-webkit-scrollbar { display: none; }

.subtabs button {
  flex: 1 0 auto;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  padding: 9px 15px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.subtabs button[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

/* ---------------------------------------------------------------- 記録の一覧 */

.log {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.log:first-of-type { border-top: 0; padding-top: 0; }
.log-main { flex: 1; min-width: 0; }
.log-title { font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.log-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.log-amt {
  font-weight: 700;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sum {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

.sum .v {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.sum.total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 14px;
  font-weight: 700;
  color: var(--ink);
}

.sum.total .v { font-weight: 800; font-size: 15px; }

/* ---------------------------------------------------------------- 注意書き */

.note {
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  font-size: 12.5px;
  line-height: 1.7;
  background: var(--surface);
  color: var(--ink-2);
}

/* 色は状態のためだけに使う。左の線1本で種別を示す */
.note.info { box-shadow: inset 3px 0 0 var(--ink-3); }
.note.warn { box-shadow: inset 3px 0 0 var(--warning); }
.note.err { box-shadow: inset 3px 0 0 var(--critical); }

.note b { color: var(--ink); font-weight: 700; display: block; margin-bottom: 5px; }
.note p { margin: 0; }
.note p + p { margin-top: 7px; }
.note .btn { margin-top: 13px; }

/* ---------------------------------------------------------------- タブバー */

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 20;
}

.tabbar button {
  flex: 1;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: color 0.15s ease;
}

.tabbar button .ic {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.tabbar button .ic svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar button[aria-selected="true"] { color: var(--accent); }
.tabbar button[aria-selected="true"] .ic svg { stroke-width: 2.1; }

/* ------------------------------------------- ホーム画面に追加する案内 */

.install {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--accent);
}

.install-body { flex: 1; min-width: 0; }

.install-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.install-steps {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.install-steps b { color: var(--ink); font-weight: 700; }

.install-close {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-3);
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.install-close:hover { background: var(--surface-3); color: var(--ink); }

/* ---------------------------------------------------------------- 金額を隠す */

body.masked .money {
  filter: blur(9px);
  user-select: none;
}

/* ---------------------------------------------------------------- 状態 */

[hidden] { display: none !important; }

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--surface-3);
  border-top-color: var(--ink-2);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}

@keyframes spin { to { rotate: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.toast {
  position: fixed;
  left: 50%;
  translate: -50% 0;
  bottom: calc(var(--tabbar) + 20px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--ground);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 99px;
  z-index: 30;
  max-width: calc(100% - 36px);
  text-align: center;
  line-height: 1.5;
}
