/* [ohisama_marathon] ウィジェット CSS
 * v7.45.0: admin/views/marathon-widget.php のインライン <style>（約27KB）から外部化。
 *   通常表示は wp_enqueue_style（?ver=HINTV_VERSION）で読み込み、ブラウザキャッシュを効かせる。
 *   管理者シミュレーター（iframe内プレビュー）だけは従来どおり view がインライン出力する。
 */
    :root {
      --omh-sky: #5CB8E4; --omh-gold: #FFD700;
      --omh-text: #0D3B5C;         /* 濃紺（本文） */
      --omh-text-mid: #3A7AA0;     /* 中間 */
      --omh-text-light: #6BA5C0;   /* 薄め（補足） */
      --omh-text-on-dark: #fff;    /* 水色グラデ直上の文字（ヘッダ・タイトルのみ） */
      --omh-panel: rgba(255,255,255,0.85);   /* 白パネル（主役） */
      --omh-panel-soft: rgba(255,255,255,0.65);
      --omh-panel-border: rgba(255,255,255,0.7);
      --omh-green: #4ECBA0; --omh-pink: #FF7AB2;
      --omh-radius-sm: 10px; --omh-font: 'M PLUS Rounded 1c', sans-serif;
    }
    .omh {
      font-family: var(--omh-font);
      background: var(--omh-bg, linear-gradient(150deg, #4BAED8 0%, #7DCFF5 55%, #A3E8FF 100%)); /* v7.142.0: スキンで差し替え可 */
      border-radius: 22px; padding: 20px 16px 16px;
      width: 100%; max-width: 100%;
      box-sizing: border-box;
      margin: 0;
      position: relative; overflow: hidden; box-shadow: 0 8px 28px rgba(92,184,228,0.35);
    }
    .omh::before {
      content: '☀️'; position: absolute; font-size: 120px; opacity: 0.06;
      top: -20px; right: -20px; pointer-events: none; line-height: 1;
    }
    .omh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
    .omh-badge {
      background: rgba(255,255,255,0.9); color: var(--omh-text); font-size: 10px; font-weight: 900;
      letter-spacing: 0.08em; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,1);
    }
    .omh-date { color: #fff; font-size: 11px; font-weight: 900; text-shadow: 0 1px 2px rgba(0,80,140,0.25); }
    .omh-title { color: #fff; font-size: 20px; font-weight: 900; line-height: 1.2; margin-bottom: 12px; text-shadow: 0 1px 4px rgba(0,80,140,0.35); }
    .omh-title span { border-bottom: 2.5px solid var(--omh-gold); }
    .omh-status {
      display: flex; align-items: center; gap: 10px;
      background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.35);
      border-radius: var(--omh-radius-sm); padding: 10px 12px; margin-bottom: 14px;
    }
    .omh-streak-num { display: flex; align-items: baseline; gap: 2px; flex-shrink: 0; }
    .omh-streak-val { font-size: 32px; font-weight: 900; color: #fff; line-height: 1; text-shadow: 0 2px 6px rgba(0,80,140,0.2); min-width: 2ch; text-align: right; }
    .omh-streak-unit { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.85); }
    .omh-divider { width: 1px; height: 34px; background: rgba(255,255,255,0.3); flex-shrink: 0; }
    .omh-rank-wrap { flex: 1; min-width: 0; }
    .omh-rank-badge { display: inline-block; background: var(--omh-gold); color: #5A3E00; font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 6px; margin-bottom: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .omh-rank-next { font-size: 10px; color: rgba(255,255,255,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .omh-section-label { font-size: 11px; font-weight: 900; color: #fff; letter-spacing: 0.06em; margin-bottom: 5px; text-shadow: 0 1px 2px rgba(0,80,140,0.3); }
    .omh-extra-label   { font-size: 11px; font-weight: 900; color: #fff; letter-spacing: 0.06em; margin: 8px 0 5px; display: none; text-shadow: 0 1px 2px rgba(0,80,140,0.3); }
    .omh-missions { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
    /* 座布団（セクション背景パネル） */
    .omh-panel {
      background: rgba(255,255,255,0.25);
      border: 1px solid rgba(255,255,255,0.45);
      border-radius: 14px;
      padding: 10px 12px 8px;
      margin-bottom: 10px;
      backdrop-filter: blur(4px);
    }
    .omh-panel-label {
      font-size: 11px; font-weight: 900; color: #fff;
      letter-spacing: 0.06em; margin-bottom: 7px;
      display: flex; align-items: center; gap: 5px;
      text-shadow: 0 1px 2px rgba(0,80,140,0.3);
    }
    .omh-panel .omh-section-label,
    .omh-panel .omh-extra-label,
    .omh-panel .omh-watch-label {
      margin-bottom: 7px;
    }
    .omh-panel .omh-missions { margin-bottom: 0; }
    .omh-panel .omh-watch-card { margin-bottom: 0; }

    /* ── 従来カード (legacy) ── */
    .omh-card {
      display: flex; align-items: center; gap: 10px;
      background: rgba(255,255,255,0.96); border-radius: var(--omh-radius-sm);
      padding: 9px 10px; cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
      box-shadow: 0 2px 8px rgba(0,80,140,0.08);
    }
    .omh-card:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,80,140,0.14); }
    .omh-card:active { transform: scale(0.98); }
    .omh-card.is-done { background: rgba(255,255,255,0.55); box-shadow: none; }
    .omh-card-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
    .omh-ic-blue  { background: #5CB8E4; }
    .omh-ic-gold  { background: #F5C518; }
    .omh-ic-green { background: #4ECBA0; }
    .omh-ic-pink  { background: #FF7AB2; }
    .omh-card-body { flex: 1; min-width: 0; }
    .omh-card-title {
      font-size: 12px; font-weight: 900; color: var(--omh-text); line-height: 1.35;
      white-space: normal; overflow-wrap: anywhere;
      display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    }
    .omh-card-desc  {
      font-size: 10px; color: var(--omh-text-light); line-height: 1.4; margin-top: 2px;
      white-space: normal; overflow-wrap: anywhere;
      display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    }
    .omh-card-chk   { font-size: 14px; flex-shrink: 0; color: var(--omh-text-light); }
    .omh-card.is-done .omh-card-chk { color: var(--omh-green); }

    /* ── 分離UIカード (split) ── */
    .omh-card-split {
      display: flex; align-items: stretch;
      background: rgba(255,255,255,0.96); border-radius: var(--omh-radius-sm);
      box-shadow: 0 2px 8px rgba(0,80,140,0.08); overflow: hidden;
    }
    .omh-card-split.is-done { background: rgba(255,255,255,0.55); box-shadow: none; }
    /* 左：リンクエリア */
    .omh-split-link {
      display: flex; align-items: center; gap: 10px;
      flex: 1; min-width: 0; padding: 9px 10px;
      cursor: pointer; text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.12s;
    }
    .omh-split-link:hover  { background: rgba(92,184,228,0.08); }
    .omh-split-link:active { background: rgba(92,184,228,0.18); }
    .omh-card-split.is-done .omh-split-link { opacity: 0.65; }
    /* 右：チェックボタン */
    .omh-split-chk {
      display: flex; align-items: center; justify-content: center;
      width: 44px; flex-shrink: 0;
      border-left: 1px solid rgba(92,184,228,0.2);
      cursor: pointer; font-size: 22px; color: #c0d8e8;
      transition: background 0.12s, color 0.12s;
      -webkit-tap-highlight-color: transparent;
    }
    .omh-split-chk:hover  { background: rgba(78,203,160,0.12); color: var(--omh-green); }
    .omh-split-chk:active { background: rgba(78,203,160,0.25); }
    .omh-card-split.is-done .omh-split-chk { color: var(--omh-green); }

    /* ひなテレ視聴ボーナスカード */
    .omh-watch-label { font-size: 11px; font-weight: 900; color: #fff; letter-spacing: 0.06em; margin: 8px 0 5px; text-shadow: 0 1px 2px rgba(0,80,140,0.3); }
    .omh-watch-card {
      display: flex; align-items: center; gap: 10px;
      background: rgba(255,255,255,0.96); border-radius: var(--omh-radius-sm);
      padding: 10px 12px; box-shadow: 0 2px 8px rgba(0,80,140,0.08);
    }
    .omh-watch-card.is-done { background: rgba(255,255,255,0.55); box-shadow: none; }
    .omh-watch-body { flex: 1; min-width: 0; }
    .omh-watch-title { font-size: 12px; font-weight: 900; color: var(--omh-text); margin-bottom: 5px; }
    .omh-watch-bar-bg { background: #ddeeff; border-radius: 99px; height: 6px; overflow: hidden; margin-bottom: 3px; }
    .omh-watch-bar-fill { height: 6px; border-radius: 99px; background: var(--omh-sky); width: 0%; transition: width 1s linear; }
    .omh-watch-bar-fill.is-new { background: #f0a500; }
    .omh-watch-remain { font-size: 10px; color: var(--omh-text-light); }
    .omh-watch-period { font-size: 9px; color: var(--omh-text-light); opacity: 0.6; margin-top: 2px; }
    .omh-booster-badge { display: inline-block; background: linear-gradient(135deg,#D4A857,#b8860b); color: #fff; font-size: 11px; font-weight: 900; padding: 4px 12px; border-radius: 99px; margin-top: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
    .omh-freeze-badge { display: none; font-size: 11px; font-weight: 900; color: #b45309; background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(245,158,11,.12)); border: 1px solid rgba(245,158,11,.4); padding: 3px 10px; border-radius: 99px; margin-top: 6px; transition: all .3s; }
    .omh-freeze-badge.is-active { display: inline-block; }
    .omh-freeze-badge.is-empty { opacity: .45; }
    .omh-freeze-badge.is-full { color: #854d0e; background: linear-gradient(135deg, rgba(251,191,36,.35), rgba(245,158,11,.25)); border-color: rgba(217,119,6,.6); box-shadow: 0 0 8px rgba(245,158,11,.2); }
    .omh-freeze-max-label { color: #d97706; font-weight: 600; }
    .omh-freeze-full-tag { display: inline-block; background: #f59e0b; color: #fff; font-size: 9px; font-weight: 900; padding: 1px 6px; border-radius: 4px; margin-left: 4px; letter-spacing: .5px; }
    .omh-freeze-boost-hint { font-size: 11px; color: #92400e; background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(251,191,36,.05)); border: 1px dashed rgba(245,158,11,.4); border-radius: 8px; padding: 6px 12px; margin-top: 6px; text-align: center; }
    /* v6.62.0: 保険の毎日配布バッジ */
    .omh-daily-freeze-badge { display: inline-block; font-size: 11px; font-weight: 800; color: #047857; background: linear-gradient(135deg, rgba(16,185,129,.14), rgba(5,150,105,.10)); border: 1px solid rgba(16,185,129,.45); border-radius: 99px; padding: 3px 12px; margin-top: 6px; }
    .omh-lsp-wrap { margin-top: 8px; padding: 6px 12px; background: rgba(99,102,241,.04); border: 1px solid rgba(99,102,241,.15); border-radius: 8px; }
    .omh-lsp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
    .omh-lsp-level { font-size: 11px; font-weight: 900; color: #4f46e5; }
    .omh-lsp-pts { font-size: 10px; font-weight: 700; color: #6366f1; }
    .omh-lsp-bar { height: 5px; background: #e0e7ff; border-radius: 99px; overflow: hidden; }
    .omh-lsp-fill { height: 100%; background: linear-gradient(90deg, #818cf8, #6366f1); border-radius: 99px; transition: width .6s; }
    .omh-lsp-next { font-size: 9px; color: #94a3b8; text-align: right; margin-top: 2px; }
    .omh-lsp-exchange-btn { background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(139,92,246,.06)); color: #4f46e5; border: 1px solid rgba(99,102,241,.3); border-radius: 6px; padding: 4px 12px; font-size: 10px; font-weight: 700; cursor: pointer; transition: all .2s; }
    .omh-lsp-exchange-btn:hover { background: rgba(99,102,241,.18); }
    .omh-lsp-exchange-btn:disabled { opacity: .4; cursor: default; }
    .omh-lsp-coming-soon { margin-top: 8px; padding: 8px 14px; background: linear-gradient(135deg, rgba(124,58,237,.06), rgba(139,92,246,.04)); border: 1px dashed rgba(139,92,246,.3); border-radius: 8px; text-align: center; }
    .omh-lsp-cs-badge { display: inline-block; font-size: 9px; font-weight: 900; color: #7c3aed; background: rgba(139,92,246,.12); padding: 2px 8px; border-radius: 4px; letter-spacing: 1px; margin-bottom: 3px; }
    .omh-lsp-cs-text { font-size: 11px; color: #6366f1; font-weight: 600; }

    /* ── v7.136.0: 内部経済の折りたたみ（保険・マイレージ・ブースト・チャレンジ） ── */
    .omh-econ { margin-top: 8px; }
    .omh-econ-sum { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.7); -webkit-tap-highlight-color: transparent; }
    .omh-econ-sum::-webkit-details-marker { display: none; }
    .omh-econ-sum-items { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; font-size: 11px; font-weight: 800; color: var(--omh-text); }
    .omh-econ-sum-item { white-space: nowrap; }
    .omh-econ-sum-toggle { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--omh-text-light); }
    .omh-econ-sum-close { display: none; }
    .omh-econ[open] .omh-econ-sum-open { display: none; }
    .omh-econ[open] .omh-econ-sum-close { display: inline; }
    .omh-econ[open] .omh-econ-sum { border-radius: 8px 8px 0 0; }
    .omh-econ-body { padding: 4px 2px 0; }
    .omh-econ-body .omh-boost-wrap { margin-top: 8px; text-align: center; }
    .omh-econ-body .omh-booster-badge { margin-top: 2px; }
    @keyframes omhCsPulse { 0%,100%{opacity:.6} 50%{opacity:1} }
    .omh-lsp-coming-soon { animation: omhCsPulse 3s ease-in-out infinite; }
    /* v6.44.0: ストリークブースト */
    .omh-boost-wrap { text-align: center; margin-top: 8px; }
    .omh-boost-btn { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border: none; border-radius: 10px; padding: 8px 18px; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(217,119,6,.3); transition: all .2s; touch-action: manipulation; }
    .omh-boost-btn:hover { transform: scale(1.03); box-shadow: 0 4px 12px rgba(217,119,6,.4); }
    .omh-boost-btn:disabled { opacity: .5; cursor: default; transform: none; }
    .omh-boost-active { font-size: 12px; font-weight: 700; color: #d97706; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); border-radius: 8px; padding: 6px 14px; display: inline-block; }
    .omh-dayoff-btn { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; border: none; border-radius: 10px; padding: 8px 16px; font-weight: 700; font-size: 11px; cursor: pointer; margin-top: 6px; transition: all .2s; }
    .omh-dayoff-btn:hover { transform: scale(1.02); }
    .omh-dayoff-btn:disabled { opacity: .4; transform: none; }
    .omh-encore-btn { background: linear-gradient(135deg, #ec4899, #db2777); color: #fff; border: none; border-radius: 6px; padding: 3px 8px; font-weight: 700; font-size: 10px; cursor: pointer; margin-left: auto; white-space: nowrap; }
    /* v7.136.0: 分離UIではボタンがリンク列とチェック列の間に挟まるので、細く・中央寄せ・タイトルを潰さない幅に */
    .omh-card-split .omh-encore-btn { align-self: center; flex-shrink: 0; margin: 0 6px 0 0; padding: 5px 8px; max-width: 34%; white-space: normal; line-height: 1.15; text-align: center; }
    .omh-watch-boost { display: inline-block; background: linear-gradient(135deg,#ffe7a3,#ffd86b); color: #7a5200; font-size: 11px; font-weight: 900; padding: 3px 11px; border-radius: 99px; margin-bottom: 7px; }
    .omh-watch-chk { font-size: 14px; flex-shrink: 0; color: var(--omh-text-light); }
    .omh-watch-card.is-done .omh-watch-chk { color: var(--omh-green); }

    /* 進捗バー */
    .omh-progress { margin-top: 0; margin-bottom: 14px; }
    .omh-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
    .omh-progress-label { font-size: 11px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0,80,140,0.3); }
    .omh-progress-count { font-size: 12px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0,80,140,0.3); }
    .omh-progress-track { height: 7px; background: rgba(255,255,255,0.25); border-radius: 999px; overflow: hidden; }
    .omh-progress-fill { height: 100%; background: linear-gradient(90deg, var(--omh-gold), #FFB300); border-radius: 999px; width: 0%; transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1); }

    /* 達成セクション */
    #omh-complete-section { display: none; margin-top: 12px; }
    .omh-complete-inner { background: #fff; padding: 14px; text-align: center; border-radius: var(--omh-radius-sm); box-shadow: 0 4px 16px rgba(92,184,228,0.18); animation: omh-pop-in 0.4s cubic-bezier(0.175,0.885,0.32,1.275); }
    .omh-achieve-msg { font-size: 13px; font-weight: bold; color: var(--omh-text); text-align: center; padding: 4px 0; }
    /* ストリーク状態通知 */
    /* v5.47: タイマーに役割を一本化したため常時非表示 */
    .omh-streak-notice { display: none !important; }
    .omh-notice-ok   { background: rgba(30,130,60,0.75);  color: #c8ffd8; border: 1px solid rgba(100,220,140,0.5); }
    .omh-notice-warn { background: rgba(140,90,0,0.75);   color: #ffe9a0; border: 1px solid rgba(255,200,60,0.5); }
    .omh-notice-info { background: rgba(20,70,150,0.65);  color: #c8deff; border: 1px solid rgba(120,170,255,0.45); }

    /* UIモード切り替えスイッチ（カード型） */
    .omh-ui-toggle-wrap {
      display: flex; align-items: center; justify-content: space-between;
      background: rgba(255,255,255,0.15); border-radius: 12px;
      padding: 10px 14px; margin-top: 12px;
    }
    .omh-ui-toggle-text { display: flex; flex-direction: column; gap: 2px; }
    .omh-ui-toggle-title { font-size: 13px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0,80,140,0.3); }
    .omh-ui-toggle-sub { font-size: 10px; color: rgba(255,255,255,0.92); text-shadow: 0 1px 1px rgba(0,80,140,0.25); }
    .omh-toggle { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
    .omh-toggle input { opacity: 0; width: 0; height: 0; }
    .omh-toggle-slider {
      position: absolute; cursor: pointer; inset: 0;
      background: rgba(255,255,255,0.25); border-radius: 26px; transition: background 0.25s;
    }
    .omh-toggle-slider::before {
      content: ''; position: absolute;
      width: 20px; height: 20px; left: 3px; top: 3px;
      background: #fff; border-radius: 50%; transition: transform 0.25s;
      box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    }
    .omh-toggle input:checked + .omh-toggle-slider { background: var(--omh-green); }
    .omh-toggle input:checked + .omh-toggle-slider::before { transform: translateX(22px); }

    /* ══════════════════════════════════════════════════════
       リテンション強化：ヒーロー / タイマー / ヒートマップ
       ══════════════════════════════════════════════════════ */

    /* ── ストリークヒーロー（強化版） ── */
    .omh-hero {
      background: var(--omh-panel);
      border: 1px solid var(--omh-panel-border);
      border-radius: 14px;
      padding: 14px 14px 12px;
      margin-bottom: 12px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,80,140,0.08);
    }
    .omh-hero::after {
      content: '🔥';
      position: absolute;
      right: -8px; top: -8px;
      font-size: 64px;
      opacity: 0.1;
      line-height: 1;
      pointer-events: none;
      transform: rotate(14deg);
    }
    .omh-hero-label {
      font-size: 10px; font-weight: 900;
      color: var(--omh-text-mid);
      letter-spacing: 0.08em;
      margin-bottom: 4px;
    }
    .omh-hero-main {
      display: flex; align-items: baseline; gap: 4px;
      flex-wrap: wrap;
      margin-bottom: 6px;
    }
    .omh-hero-num {
      font-size: 48px; font-weight: 900;
      color: var(--omh-text);
      line-height: 0.95;
      letter-spacing: -0.02em;
    }
    .omh-hero-num.is-cold { color: var(--omh-text-light); }
    .omh-hero-unit {
      font-size: 14px; font-weight: 900;
      color: var(--omh-text);
      margin-bottom: 4px;
    }
    .omh-hero-flame {
      font-size: 22px; margin-left: 4px; margin-bottom: 6px;
      animation: omh-flame-flicker 1.6s ease-in-out infinite;
    }
    /* 称号バッジ（ヒーロー内に統合） */
    .omh-hero-rank-badge {
      display: inline-block;
      background: var(--omh-gold); color: #5A3E00;
      font-size: 11px; font-weight: 900;
      padding: 4px 10px; border-radius: 6px;
      margin-left: auto;
      margin-bottom: 6px;
      align-self: center;
      max-width: 60%;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .omh-hero-sub {
      font-size: 11px; font-weight: 700;
      color: var(--omh-text);
      line-height: 1.4;
    }
    @keyframes omh-flame-flicker {
      0%, 100% { transform: scale(1) rotate(-2deg); }
      50%      { transform: scale(1.08) rotate(3deg); }
    }

    /* ── タイムリミットバー ── */
    .omh-timer {
      background: var(--omh-panel);
      border: 1px solid var(--omh-panel-border);
      border-radius: 12px;
      padding: 10px 12px;
      margin-bottom: 12px;
      display: flex; align-items: center; gap: 10px;
      box-shadow: 0 2px 6px rgba(0,80,140,0.06);
    }
    .omh-timer.is-done {
      background: rgba(232,250,240,0.95);
      border-color: rgba(78,203,160,0.6);
    }
    .omh-timer-icon {
      font-size: 22px; flex-shrink: 0;
    }
    .omh-timer-body { flex: 1; min-width: 0; }
    .omh-timer-title {
      font-size: 11px; font-weight: 900;
      color: var(--omh-text); margin-bottom: 3px;
      line-height: 1.3;
    }
    .omh-timer-title .omh-timer-hilite {
      background: var(--omh-gold); color: #5A3E00;
      padding: 1px 6px; border-radius: 4px;
      font-weight: 900;
    }
    .omh-timer-sub {
      font-size: 10px;
      color: var(--omh-text-mid);
      line-height: 1.4;
    }
    .omh-timer.is-urgent .omh-timer-title .omh-timer-hilite {
      background: #FF6B6B; color: #fff;
      animation: omh-urgent-pulse 1.2s ease-in-out infinite;
    }
    @keyframes omh-urgent-pulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,107,0.6); }
      50%      { box-shadow: 0 0 0 6px rgba(255,107,107,0); }
    }

    /* ── 週次ヒートマップ（GitHub contributions 風） ── */
    .omh-heatmap {
      background: var(--omh-panel);
      border: 1px solid var(--omh-panel-border);
      border-radius: 14px;
      padding: 11px 12px 10px;
      margin-top: 16px;       /* 進捗バーとの余白確保 */
      margin-bottom: 10px;
      box-shadow: 0 2px 6px rgba(0,80,140,0.06);
    }
    .omh-heatmap-head {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 8px;
    }
    .omh-heatmap-label {
      font-size: 11px; font-weight: 900;
      color: var(--omh-text);
      letter-spacing: 0.04em;
    }
    .omh-heatmap-sum {
      font-size: 11px; font-weight: 900;
      color: var(--omh-text-mid);
    }
    .omh-heatmap-sum b { color: #D4A017; font-size: 14px; }
    .omh-heatmap-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 5px;
    }
    .omh-hm-cell {
      aspect-ratio: 1;
      border-radius: 6px;
      background: rgba(92,184,228,0.12);
      border: 1px solid rgba(92,184,228,0.25);
      position: relative;
      display: flex; align-items: flex-end; justify-content: center;
      padding-bottom: 3px;
      font-size: 10px; font-weight: 900;
      color: var(--omh-text-mid);
      transition: transform 0.15s;
    }
    .omh-hm-cell.is-today {
      outline: 2px solid #D4A017;
      outline-offset: 1px;
      background: rgba(255,215,0,0.15);
    }
    .omh-hm-cell.lv-1 { background: rgba(255,215,0,0.35); color: #5A3E00; border-color: rgba(255,215,0,0.55); }
    .omh-hm-cell.lv-2 { background: rgba(255,215,0,0.58); color: #5A3E00; border-color: rgba(255,215,0,0.75); }
    .omh-hm-cell.lv-3 { background: rgba(255,215,0,0.8);  color: #5A3E00; border-color: rgba(255,215,0,0.9); }
    .omh-hm-cell.lv-4 { background: var(--omh-gold);       color: #5A3E00; border-color: #D4A017; }
    .omh-hm-cell:hover { transform: translateY(-1px); }
    .omh-heatmap-footer {
      font-size: 9px; color: var(--omh-text-light);
      text-align: right; margin-top: 6px;
      line-height: 1;
    }

    /* あと何個で達成（残数バナー） */
    .omh-progress-remain {
      display: flex; align-items: center; justify-content: center; gap: 4px;
      margin: 0 0 7px; padding: 9px 10px;
      background: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,1);
      border-radius: 999px; font-size: 13px; font-weight: 900; color: var(--omh-text);
      box-shadow: 0 2px 8px rgba(0,80,140,0.12);
      transition: transform .25s cubic-bezier(0.34,1.56,0.64,1), background .25s;
    }
    .omh-progress-remain b { font-size: 18px; color: #FF7A00; margin: 0 2px; }
    .omh-progress-remain.is-clear { background: linear-gradient(135deg,#FFF3C4,#FFE08A); color: #7A5A00; animation: omh-pop-in .35s; }
    .omh-progress-remain.is-done  { background: rgba(78,203,160,0.18); border-color: rgba(78,203,160,0.5); color: #1E7A5A; }

    /* 使い方ボタン */
    .omh-help-btn {
      flex-shrink: 0; background: rgba(255,255,255,0.9); color: var(--omh-text);
      border: 1px solid rgba(255,255,255,1); border-radius: 999px;
      font-size: 11px; font-weight: 900; padding: 4px 12px; cursor: pointer;
      font-family: var(--omh-font); touch-action: manipulation; line-height: 1.4;
      box-shadow: 0 2px 6px rgba(0,80,140,0.18);
    }
    .omh-help-btn:active { transform: scale(0.94); }

    /* 未ログイン導線（ログインを促すカード） */
    .omh-login-cta {
      display: flex; align-items: center; gap: 10px;
      background: rgba(255,255,255,0.92); border: 1px solid #fff;
      border-radius: 14px; padding: 10px 12px; margin-bottom: 12px;
      text-decoration: none; box-shadow: 0 3px 12px rgba(0,80,140,0.16);
    }
    .omh-login-cta-icon { font-size: 22px; flex-shrink: 0; }
    .omh-login-cta-text { flex: 1; line-height: 1.4; }
    .omh-login-cta-text b { display: block; font-size: 12.5px; font-weight: 900; color: var(--omh-text); }
    .omh-login-cta-text small { display: block; font-size: 10px; color: var(--omh-text-mid); margin-top: 2px; }
    .omh-login-cta-btn {
      flex-shrink: 0; background: linear-gradient(135deg,#4BAED8,#7DCFF5); color: #fff;
      font-size: 12px; font-weight: 900; padding: 7px 14px; border-radius: 999px;
      box-shadow: 0 3px 10px rgba(75,174,216,0.4);
    }
    .omh-login-cta:active { transform: scale(0.98); }

    /* v7.101.0: 端末に記録が積まれている状態（omh_guest_log）。
       「これから始めよう」ではなく「たまっているものを失わない」に見せる。
       既存のトーンから外れない範囲で、温かい側へ寄せるだけに留める。 */
    .omh-login-cta--carry {
      background: rgba(255,251,240,0.96);
      border: 1px solid #FFE0A3;
      box-shadow: 0 3px 12px rgba(200,140,20,0.16);
    }
    .omh-login-cta--carry .omh-login-cta-btn {
      background: linear-gradient(135deg,#F2A93B,#FFD07A);
      box-shadow: 0 3px 10px rgba(242,169,59,0.42);
    }

    /* チュートリアル（コーチマーク／スポットライト） */
    .omh-tut-overlay { position: fixed; inset: 0; z-index: 100000; display: none; }
    .omh-tut-overlay.is-open { display: block; }
    .omh-tut-spot {
      position: absolute; border-radius: 14px;
      box-shadow: 0 0 0 9999px rgba(13,59,92,0.72);
      transition: all .3s cubic-bezier(0.34,1.56,0.64,1);
      pointer-events: none; border: 3px solid var(--omh-gold);
    }
    .omh-tut-tip {
      position: absolute; max-width: 280px; width: calc(100% - 36px);
      background: #fff; border-radius: 16px; padding: 16px 16px 14px;
      box-shadow: 0 12px 36px rgba(0,40,80,0.4); font-family: var(--omh-font);
      transition: top .3s ease, left .3s ease;
    }
    .omh-tut-step { font-size: 10px; font-weight: 900; color: var(--omh-text-light); letter-spacing: .06em; margin-bottom: 4px; }
    .omh-tut-title { font-size: 15px; font-weight: 900; color: var(--omh-text); line-height: 1.4; margin-bottom: 6px; }
    .omh-tut-body  { font-size: 12.5px; color: var(--omh-text-mid); line-height: 1.65; margin-bottom: 12px; white-space: pre-line; }
    .omh-tut-foot  { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .omh-tut-dots  { display: flex; gap: 5px; }
    .omh-tut-dot   { width: 7px; height: 7px; border-radius: 50%; background: rgba(13,59,92,0.18); transition: all .2s; }
    .omh-tut-dot.is-active { background: var(--omh-sky); transform: scale(1.25); }
    .omh-tut-btns  { display: flex; gap: 6px; align-items: center; }
    .omh-tut-skip  { background: none; border: none; color: var(--omh-text-light); font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--omh-font); padding: 6px 4px; }
    .omh-tut-next  {
      background: linear-gradient(135deg,#4BAED8,#7DCFF5); color: #fff; border: none;
      border-radius: 10px; padding: 8px 18px; font-weight: 900; font-size: 13px;
      cursor: pointer; font-family: var(--omh-font); touch-action: manipulation;
      box-shadow: 0 3px 10px rgba(75,174,216,0.4);
    }
    .omh-tut-next:active { transform: scale(0.95); }

    /* パーティクル */
    .omh-particle { position: fixed; pointer-events: none; font-size: 22px; z-index: 10000; animation: omh-particle-fly 1.4s ease-out forwards; }
    @keyframes omh-pop-in       { from { opacity:0; transform:scale(0.88) translateY(8px); } to { opacity:1; transform:scale(1) translateY(0); } }
    @keyframes omh-particle-fly { 0% { opacity:1; transform:translateY(0) scale(1) rotate(0deg); } 100% { opacity:0; transform:translateY(-180px) scale(0.4) rotate(360deg); } }

    /* v7.135.15: バーコード行の「読み取る」ボタンを細く（狭幅でタイトルを潰さない） */
    .omh-bc-btn { padding: 6px 10px !important; font-size: 11px !important; }
    @media (max-width: 400px) {
      .omh-bc-btn { padding: 6px 8px !important; }
    }
    .omh-card-barcode .omh-card-desc { -webkit-line-clamp: 4; }

/* ============================================================
   v7.137.1: 復帰バナー／保険の初回説明バナー ＝ 画面内通知（帯）と同じ意匠のカード帯
     notify.css の .hnb-band と同じトークン（白カード・左アクセント・14px角・同じ影・同じ書体）
     目立たせるぶん：アイコン大きめ・タイトル濃色・ボタン付き・自動では消えない
   ============================================================ */
.omh-topband{ position:fixed; left:0; right:0; top:0; z-index:9999;
  padding:calc(env(safe-area-inset-top,0px) + 10px) 10px 0;
  display:flex; justify-content:center; pointer-events:none; }
body.admin-bar .omh-topband{ padding-top:calc(env(safe-area-inset-top,0px) + 42px); }
.omh-topband-card{ pointer-events:auto; position:relative;
  width:100%; max-width:560px; box-sizing:border-box;
  display:flex; align-items:flex-start; gap:12px;
  padding:12px 38px 12px 14px;
  background:#fff; color:#163449;
  border:1px solid rgba(75,174,216,.35); border-left:5px solid #4BAED8; border-radius:14px;
  box-shadow:0 8px 24px rgba(10,60,90,.16), 0 1px 3px rgba(10,60,90,.10);
  font-family:"Hiragino Sans","BIZ UDPGothic","Noto Sans JP",Meiryo,system-ui,sans-serif;
  font-size:15px; line-height:1.35; letter-spacing:.01em;
  opacity:0; transform:translateY(-16px);
  transition:opacity .22s ease, transform .26s cubic-bezier(.2,.8,.2,1); }
.omh-topband-card.is-in{ opacity:1; transform:translateY(0); }
.omh-topband-card.is-out{ opacity:0; transform:translateY(-10px); transition-duration:.18s; }
.omh-topband-card.omh-tb-streak{ border-left-color:#ff7a3d; }
.omh-topband-card.omh-tb-streak .omh-tb-title{ color:#b8400f; }
.omh-tb-icon{ font-size:26px; line-height:1; flex:0 0 auto; margin-top:2px; }
.omh-tb-body{ flex:1 1 auto; min-width:0; }
.omh-tb-kicker{ font-size:11.5px; color:#4a6a80; margin-bottom:2px; }
.omh-tb-title{ font-weight:700; }
.omh-tb-sub{ font-size:12.5px; color:#4a6a80; margin-top:4px; line-height:1.55; }
.omh-tb-sub b{ color:#163449; }
.omh-tb-acts{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.omh-tb-btn{ border:0; border-radius:10px; padding:9px 16px; font:inherit; font-weight:700; font-size:13px;
  cursor:pointer; touch-action:manipulation; color:#fff; background:linear-gradient(135deg,#4BAED8,#0a78ac); }
.omh-tb-btn.is-warm{ background:linear-gradient(135deg,#ff7a3d,#e2531a); }
.omh-tb-btn.is-lsp{ background:linear-gradient(135deg,#6366f1,#4f46e5); }
.omh-tb-btn.is-ok{ background:linear-gradient(135deg,#10b981,#059669); }
.omh-tb-btn.is-ghost{ background:#eef6fb; color:#0a78ac; border:1px solid rgba(75,174,216,.35); }
.omh-tb-btn:disabled{ opacity:.6; cursor:default; }
.omh-tb-x{ position:absolute; top:6px; right:6px; background:none; border:0; color:#8aa0b4;
  font-size:18px; line-height:1; cursor:pointer; padding:4px 6px; }
@media (prefers-reduced-motion:reduce){
  .omh-topband-card, .omh-topband-card.is-in, .omh-topband-card.is-out{ transition:none; transform:none; }
}
