/* =========================================================
   Jolt  デザインシステム v1.4  (ブルー / スカイブルー)
   鮮やかなブルーの背景 × 白いカード × ネイビーのアクション
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800;900&display=swap');

:root {
  --blue: #2f6fd8;
  --blue-600: #2459c4;
  --blue-700: #1d4aa6;
  --navy: #17386f;
  --navy-deep: #0f2a5c;
  --sky: #6db3f2;
  --sky-300: #a9d4f8;
  --pale: #eaf3fd;
  --pale-2: #f4f9ff;
  --ink: #12294d;
  --muted: #5b7092;
  --line: #d5e4f6;
  --white: #fff;
  --ok-bg: #dcf7e8;  --ok-fg: #12703f;
  --warn-bg: #fff4d1; --warn-fg: #8a6100;
  --ng-bg: #fde2e4;  --ng-fg: #a1202f;
  --grad-btn: linear-gradient(135deg, #4ba3f2 0%, #2459c4 100%);
  --grad-band: linear-gradient(115deg, #2459c4 0%, #3680e0 52%, #6db3f2 100%);
  --grad-hero: linear-gradient(135deg, #2557c0 0%, #3a82e0 58%, #78b9f3 100%);
  --shadow-sm: 0 2px 4px rgba(18,41,77,.05), 0 8px 24px rgba(36,89,196,.08);
  --shadow-md: 0 14px 38px rgba(36,89,196,.18);
  --radius: 18px;

  /* アイコン(マスク用SVG) */
  --i-logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20.5l1.4-4.6A8 8 0 1 1 21 12z'/%3E%3Cpath d='M9 11.5h.01M12 11.5h.01M15 11.5h.01' stroke-width='2.6'/%3E%3C/svg%3E");
  --i-logout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E");
  --i-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='3'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E");
  --i-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E");
  --i-ai: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z'/%3E%3Cpath d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E");
  --i-db: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v6c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 11v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6'/%3E%3C/svg%3E");
  --i-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l9-9M16 7l3 3M14 9l2 2'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", -apple-system, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  background: var(--pale);
  color: var(--ink);
  margin: 0;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
/* 画面上部の鮮やかなブルーの帯(カードがその上に重なる) */
body:not(.auth-body)::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 330px; z-index: -1;
  background:
    radial-gradient(420px 260px at 88% 10%, rgba(255,255,255,.28), transparent 70%),
    radial-gradient(380px 240px at 8% 90%, rgba(120,185,243,.55), transparent 70%),
    var(--grad-band);
  clip-path: ellipse(135% 100% at 50% 0%);
}
body.modal-open { overflow: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }

.container { max-width: 900px; margin: 30px auto 70px; padding: 0 20px; }

/* ---------- カード ---------- */
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-md); margin-bottom: 24px; border: 1px solid rgba(255,255,255,.7);
}
h1, h2, h3 { color: var(--navy); margin: 0 0 14px; letter-spacing: .02em; }
h1 { font-size: 25px; font-weight: 900; display: flex; align-items: center; gap: 12px; }
h1::before { content: ""; width: 7px; height: 28px; border-radius: 5px; background: var(--grad-btn); flex: none; }
h2 { font-size: 18px; font-weight: 800; }

/* ---------- フォーム ---------- */
label { display: block; margin: 18px 0 6px; font-weight: 700; font-size: 13px; color: var(--navy); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], textarea, select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: var(--pale-2);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover, textarea:hover, select:hover { border-color: var(--sky-300); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47,111,216,.18);
}
textarea { min-height: 96px; }

/* ---------- ボタン ---------- */
button, .btn {
  background: var(--grad-btn); color: #fff; border: none; padding: 12px 28px; border-radius: 999px;
  cursor: pointer; font-size: 15px; font-weight: 800; font-family: inherit; display: inline-flex;
  align-items: center; gap: 8px; text-decoration: none; margin-top: 16px; letter-spacing: .03em;
  box-shadow: 0 8px 18px rgba(36,89,196,.32); transition: transform .12s, box-shadow .12s, filter .12s;
}
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(36,89,196,.38); filter: brightness(1.05); color: #fff; text-decoration: none; }
button:active, .btn:active { transform: translateY(0); }
button:disabled { opacity: .6; cursor: wait; transform: none; }
.btn svg, button svg { width: 18px; height: 18px; flex: none; }
.btn-secondary, button.btn-secondary { background: #fff; color: var(--blue-600); border: 1.5px solid var(--sky-300); box-shadow: none; }
.btn-secondary:hover, button.btn-secondary:hover { background: var(--pale-2); color: var(--blue-700); box-shadow: none; }
.btn-danger, button.btn-danger { color: var(--ng-fg); border-color: #f2b9bf; }
.btn-danger:hover, button.btn-danger:hover { background: var(--ng-bg); color: var(--ng-fg); }
.btn-small, button.btn-small { padding: 8px 18px; font-size: 13px; margin-top: 10px; }
.btn[href*="site_edit.php"]:not([href*="id="])::before,
.btn[href*="bot_edit.php"]:not([href*="&id="])::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--i-plus) center/contain no-repeat; mask: var(--i-plus) center/contain no-repeat;
}

/* ---------- テーブル ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid #e6eff9; font-size: 14px; }
th { background: var(--pale); color: var(--navy); font-weight: 800; white-space: nowrap; }
tr:last-child th, tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--pale-2); }

/* ---------- バッジ・お知らせ ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-active { background: var(--ok-bg); color: var(--ok-fg); }
.badge-pending { background: var(--warn-bg); color: var(--warn-fg); }
.badge-suspended { background: var(--ng-bg); color: var(--ng-fg); }
.notice {
  background: #fff; border-left: 6px solid var(--sky); color: var(--navy); padding: 14px 18px;
  border-radius: 12px; margin-bottom: 18px; font-size: 14px; box-shadow: var(--shadow-sm);
}
.error { color: var(--ng-fg); background: var(--ng-bg); border: 1px solid #f7c3c8; border-radius: 12px; padding: 11px 14px; font-size: 14px; margin: 12px 0; }
code { background: var(--pale); color: var(--navy); padding: 2px 8px; border-radius: 6px; font-size: .92em; }

/* ---------- 上部ナビ ---------- */
.top-nav {
  display: flex; align-items: center; gap: 14px; padding: 12px 28px; position: sticky; top: 0; z-index: 30;
  background: rgba(30,82,184,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(15,42,92,.18);
}
.top-nav.is-admin { background: rgba(15,42,92,.92); }
.top-nav .brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-weight: 900; font-size: 17px; letter-spacing: .03em; margin-right: auto; }
.top-nav .brand:hover { text-decoration: none; color: #fff; }
.brand-mark {
  position: relative; width: 36px; height: 36px; border-radius: 12px; flex: none; display: inline-block;
  background: linear-gradient(135deg, #8fd0ff, #3a82e0); box-shadow: 0 4px 12px rgba(0,0,0,.25), inset 0 0 0 1.5px rgba(255,255,255,.55);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 3px 3px 4px; background: url("assets/jolt-mark.svg") center/contain no-repeat;
  filter: drop-shadow(0 1px 1.5px rgba(15,42,92,.28));
}
.top-nav nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.top-nav nav a {
  color: rgba(255,255,255,.92); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px; transition: background .12s;
}
.top-nav nav a:hover { background: rgba(255,255,255,.16); color: #fff; text-decoration: none; }
.top-nav nav a.active { background: rgba(255,255,255,.22); color: #fff; font-weight: 700; }
.top-nav nav a::before {
  content: ""; width: 17px; height: 17px; background: currentColor; opacity: .9;
  -webkit-mask: var(--i-home) center/contain no-repeat; mask: var(--i-home) center/contain no-repeat;
}
.top-nav nav a[href*="logout"]::before { -webkit-mask-image: var(--i-logout); mask-image: var(--i-logout); }
.top-nav nav a[href*="billing"]::before { -webkit-mask-image: var(--i-card); mask-image: var(--i-card); }
.top-nav nav a[href*="admin_ai_settings"]::before { -webkit-mask-image: var(--i-ai); mask-image: var(--i-ai); }
.top-nav nav a[href*="admin_backup"]::before { -webkit-mask-image: var(--i-db); mask-image: var(--i-db); }
.top-nav nav a[href*="admin_password"]::before { -webkit-mask-image: var(--i-key); mask-image: var(--i-key); }

/* 右上のバージョン表示(クリックで更新履歴) */
.ver-badge {
  margin: 0; padding: 6px 14px; font-size: 13px; font-weight: 800; letter-spacing: .02em; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55);
}
.ver-badge:hover { background: #fff; color: var(--blue-700); box-shadow: inset 0 0 0 1.5px #fff; transform: none; filter: none; }
.ver-badge svg { width: 15px; height: 15px; }
.ver-modal { position: fixed; inset: 0; z-index: 100; background: rgba(15,42,92,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ver-modal[hidden] { display: none; }
.ver-dialog { position: relative; background: #fff; border-radius: 20px; width: 100%; max-width: 560px; max-height: 85vh; overflow-y: auto; padding: 30px; box-shadow: 0 24px 60px rgba(15,42,92,.4); }
.ver-dialog h2 { font-size: 21px; font-weight: 900; }
.ver-dialog h3 { font-size: 14px; color: var(--muted); margin: 22px 0 8px; }
.ver-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0; margin: 0; font-size: 22px; line-height: 1; border-radius: 50%; background: var(--pale); color: var(--navy); box-shadow: none; justify-content: center; }
.ver-close:hover { background: var(--sky-300); color: var(--navy); box-shadow: none; }
.ver-current { margin: 4px 0 0; }
.ver-date { color: var(--muted); font-size: 13px; margin-left: 6px; }
.ver-list section { border-left: 3px solid var(--sky-300); padding: 2px 0 2px 16px; margin-bottom: 16px; }
.ver-head { display: flex; align-items: baseline; gap: 10px; }
.ver-head strong { color: var(--blue-600); font-size: 16px; }
.ver-head span { color: var(--muted); font-size: 12px; }
.ver-list ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.ver-list li { margin-bottom: 3px; }
.version-pill { display: inline-block; background: var(--grad-btn); color: #fff; font-weight: 800; padding: 3px 14px; border-radius: 999px; font-size: 14px; }

/* ---------- 統計タイル・見出し ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { position: relative; overflow: hidden; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-md); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(109,179,242,.35), transparent 70%); }
.stat-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--grad-btn); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 16px rgba(36,89,196,.3); }
.stat-icon svg { width: 23px; height: 23px; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 14px; }
.stat-value { font-size: 34px; font-weight: 900; color: var(--navy); line-height: 1.2; }
.stat-sub { font-size: 12px; color: var(--muted); }
.section-title { display: flex; align-items: center; gap: 10px; }
.section-title svg { width: 22px; height: 22px; color: var(--blue); }
.changelog { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.changelog li { position: relative; padding: 6px 0 6px 22px; border-bottom: 1px dashed var(--line); }
.changelog li:last-child { border-bottom: none; }
.changelog li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }

/* ---------- Bot管理・Q&A ---------- */
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 16px 0 6px; }
.bot-card { border: 1.5px solid var(--line); border-bottom: 5px solid var(--sky-300); border-radius: 16px; padding: 18px; background: var(--pale-2); }
.bot-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.bot-avatar { width: 44px; height: 44px; border-radius: 14px; background: var(--grad-btn); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 6px 14px rgba(36,89,196,.28); }
.bot-avatar svg { width: 24px; height: 24px; }
.bot-name { font-weight: 800; color: var(--navy); }
.bot-sub { font-size: 12px; color: var(--muted); }
.bot-card textarea { min-height: 0; background: #fff; }
.bot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bot-actions .btn, .bot-actions button { margin-top: 10px; }
.bot-tag { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: var(--pale-2); }
.bot-tag-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--navy); }
.bot-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.bot-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; background: var(--pale); color: var(--navy); font-size: 14px; font-weight: 700; border: 1.5px solid transparent; }
.bot-tab svg { width: 17px; height: 17px; }
.bot-tab:hover { background: #dcebfb; text-decoration: none; }
.bot-tab.active { background: var(--grad-btn); color: #fff; box-shadow: 0 6px 14px rgba(36,89,196,.3); }
.bot-tab-add { background: #fff; border: 1.5px dashed var(--sky-300); color: var(--blue); }
.qna-item { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; background: var(--pale-2); }

/* =========================================================
   ログイン / 新規登録  (鮮やかなブルーのヒーロー + 白いカード)
   ========================================================= */
body.auth-body { background: #fff; min-height: 100vh; }
.auth { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100vh; }

.auth-hero {
  position: relative; overflow: hidden; color: #fff; padding: 44px 52px 0; background: var(--grad-hero);
  display: flex; flex-direction: column;
}
.auth-hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -240px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.30), transparent 66%); pointer-events: none; }
.auth-hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 60px; height: 260px; background: #fff; opacity: .96; border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: scaleX(1.1); pointer-events: none; }
.auth-hero > * { position: relative; z-index: 1; }
.hero-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 20px; letter-spacing: .03em; }
.hero-brand .brand-mark { width: 42px; height: 42px; }
.hero-brand .brand-mark::after { inset: 3px 3px 5px; }
.hero-brand small { font-weight: 500; opacity: .85; font-size: 13px; }

.hero-copy { margin-top: 38px; }
.hero-copy h2 { color: #fff; font-size: 40px; line-height: 1.38; font-weight: 900; letter-spacing: .08em; margin: 0 0 12px; text-shadow: 0 2px 14px rgba(15,42,92,.25); }
.hero-copy p { color: rgba(255,255,255,.94); font-size: 16px; font-weight: 500; letter-spacing: .06em; margin: 0; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 54px; }
.feat {
  position: relative; background: #fff; border-radius: 12px; padding: 30px 8px 14px; text-align: center; color: var(--muted);
  box-shadow: 0 10px 24px rgba(15,42,92,.22); border-bottom: 5px solid var(--sky-300); font-size: 13px; line-height: 1.5; font-weight: 500;
}
.feat-check {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-btn); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(36,89,196,.4);
}
.feat-check svg { width: 20px; height: 20px; }
.feat strong { display: block; color: var(--blue); font-size: 22px; font-weight: 900; letter-spacing: .06em; margin-top: 2px; }

.hero-device { margin: 26px auto 0; width: 100%; max-width: 470px; display: block; filter: drop-shadow(0 14px 22px rgba(15,42,92,.28)); }
.hero-device-label { display: flex; justify-content: center; margin-top: -2px; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 9px 22px 9px 26px; border-radius: 999px 0 0 999px; font-weight: 700; letter-spacing: .06em; font-size: 14px; margin-left: auto; margin-top: -26px; }
.hero-pill svg { width: 20px; height: 20px; }
.hero-spacer { flex: 1; min-height: 20px; }

.hero-cta {
  display: flex; align-items: center; justify-content: space-between; margin: 0 -52px; padding: 20px 52px; background: var(--navy);
  color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .06em; position: relative; z-index: 2;
}
.hero-cta:hover { color: #fff; text-decoration: none; background: var(--navy-deep); }
.hero-cta svg { width: 22px; height: 22px; }
.hero-cta .cta-hint { font-size: 13px; font-weight: 500; opacity: .8; margin-right: 12px; letter-spacing: .03em; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: radial-gradient(560px 360px at 100% 0%, rgba(109,179,242,.20), transparent 70%), #fff; }
.auth-box { width: 100%; max-width: 410px; }
.auth-box .mobile-brand { display: none; }
.auth-box h1 { font-size: 30px; margin-bottom: 6px; }
.auth-box h1::before { display: none; }
.auth-box .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.role-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--pale); color: var(--blue-700); padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; margin-bottom: 14px; }
.role-chip svg { width: 15px; height: 15px; }
.field { position: relative; }
.field > svg { position: absolute; left: 14px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--sky); pointer-events: none; }
.field input { padding-left: 44px; }
.field:focus-within > svg { color: var(--blue); }
.auth-box button[type=submit] { width: 100%; justify-content: center; margin-top: 24px; padding: 15px; font-size: 16px; }
.auth-links { margin-top: 22px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-links a { font-weight: 800; }
.auth-note { font-size: 12.5px; color: var(--muted); background: var(--pale-2); border-radius: 12px; padding: 12px 14px; margin-top: 18px; line-height: 1.6; }

/* 運営者ログイン: より深いネイビー〜ブルー */
body.theme-admin .auth-hero { background: linear-gradient(135deg, #0f2a5c 0%, #1d4ed8 60%, #38a3ec 100%); }
body.theme-admin .role-chip { background: #dbeafe; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { min-height: 100vh; padding: 28px 20px; background: linear-gradient(180deg, #cfe5fb 0%, #fff 42%); }
  .auth-box .mobile-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--navy); margin-bottom: 26px; font-size: 17px; }
  .auth-box .mobile-brand .brand-mark { background: var(--grad-btn); }
}
@media (max-width: 720px) {
  .top-nav { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .top-nav .brand { font-size: 15px; }
  .top-nav nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .top-nav nav a { white-space: nowrap; padding: 7px 11px; }
  .container { margin-top: 20px; }
  .card { padding: 20px; }
  table { display: block; overflow-x: auto; }
}

/* Q&A: 更新と削除を横並びに */
.qna-item form { display: inline-block; margin-right: 8px; }
.qna-item form label:first-of-type { margin-top: 4px; }

/* =========================================================
   FTP自動設置(トグルスイッチ・入力欄・結果)
   ========================================================= */
.auto-box { margin-top: 20px; border: 1.5px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--pale-2), #fff); padding: 18px 20px; }
.switch-row { display: flex; align-items: center; gap: 14px; margin: 0; cursor: pointer; }
.switch-text { display: flex; flex-direction: column; color: var(--navy); }
.switch-text strong { font-size: 16px; font-weight: 800; }
.switch-text small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.switch { position: relative; width: 56px; height: 32px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch-slider { position: absolute; inset: 0; border-radius: 999px; background: #c9d6e6; transition: background .2s; box-shadow: inset 0 1px 3px rgba(0,0,0,.15); }
.switch-slider::before { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15,42,92,.3); transition: transform .2s; }
.switch input:checked + .switch-slider { background: var(--grad-btn); }
.switch input:checked + .switch-slider::before { transform: translateX(24px); }
.switch input:focus-visible + .switch-slider { box-shadow: 0 0 0 4px rgba(47,111,216,.25); }

.ftp-fields { display: none; margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 4px; animation: cbw-fade .2s ease; }
.ftp-fields.open { display: block; }
@keyframes cbw-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ftp-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 0 14px; }
.ftp-grid > div { min-width: 0; }
.ftp-col-wide, .ftp-col-wide2 { grid-column: auto; }
.ftp-adv { margin-top: 12px; font-size: 13px; color: var(--muted); }
.ftp-adv summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); margin: 8px 0 0; }
.check-row input { width: 18px; height: 18px; }
.ftp-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); background: var(--pale); border-radius: 12px; padding: 10px 12px; margin: 14px 0 0; }
.ftp-note svg { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 2px; }
.ftp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-install { padding: 13px 30px; font-size: 16px; }
.ftp-result { margin-top: 16px; border-radius: 14px; padding: 14px 16px; background: #fff; border: 1.5px solid var(--line); border-left-width: 6px; }
.ftp-result-ok { border-left-color: #2fb36b; }
.ftp-result-partial { border-left-color: #e5a800; }
.ftp-result-ng { border-left-color: #d64553; }
.ftp-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--navy); }
.ftp-result-meta { font-size: 12px; color: var(--muted); }
.ftp-result-note { font-size: 13.5px; margin: 8px 0 0; color: var(--ink); }
.ftp-files { list-style: none; padding: 0; margin: 10px 0 0; }
.ftp-files li { display: flex; flex-direction: column; padding: 8px 0 8px 26px; border-top: 1px dashed var(--line); font-size: 13px; position: relative; }
.ftp-files li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: #2fb36b; }
.ftp-files li.is-error::before { background: #d64553; }
.ftp-files li.is-already::before, .ftp-files li.is-none::before { background: var(--sky); }
.ftp-files li span { color: var(--muted); }
@media (max-width: 720px) { .ftp-grid { grid-template-columns: 1fr; } }
#cbw-auto-box { scroll-margin-top: 90px; }

/* サイト学習 */
.learn-check { background: #fff; border: 1.5px solid var(--sky-300); border-radius: 12px; padding: 10px 12px; margin-top: 14px; }
.learn-callout { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, #eaf3fd, #f7fbff); border: 1.5px solid var(--sky-300); border-radius: 14px; padding: 14px 16px; margin: 6px 0 16px; font-size: 13.5px; }
.learn-callout svg { width: 24px; height: 24px; color: var(--blue); flex: none; margin-top: 2px; }
.ftp-result-note svg { width: 16px; height: 16px; color: var(--blue); vertical-align: -3px; }
.learn-test { display: flex; gap: 10px; align-items: center; }
.learn-test input { flex: 1; }
.learn-test button { margin-top: 0; white-space: nowrap; }
.learn-hits { margin-top: 16px; display: grid; gap: 10px; }
.learn-hit { border: 1.5px solid var(--line); border-left: 5px solid var(--blue); border-radius: 12px; padding: 12px 14px; background: var(--pale-2); }
.learn-hit.is-base { border-left-color: var(--sky-300); opacity: .85; }
.learn-hit-head { display: flex; justify-content: space-between; gap: 10px; color: var(--navy); font-size: 14px; }
.learn-hit-head span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.learn-hit-text { font-size: 13px; color: var(--ink); margin-top: 6px; max-height: 160px; overflow: auto; }
@media (max-width: 720px) { .learn-test { flex-direction: column; align-items: stretch; } }

/* AIに聞いてみる */
.ai-out { margin-top: 14px; }
.ai-answer { background: #fff; border: 1.5px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 14px 16px; white-space: pre-wrap; font-size: 14px; line-height: 1.8; box-shadow: var(--shadow-sm); }
.ai-answer.is-error { color: var(--ng-fg); background: var(--ng-bg); border-color: #f7c3c8; }
.ai-sources { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 10px; font-size: 12.5px; }
.ai-sources-head { color: var(--muted); font-weight: 700; }
.ai-sources a { background: var(--pale); border-radius: 999px; padding: 3px 12px; }

/* =========================================================
   v1.8 コンシェルジュ(写真・GIF動画)/ 回答範囲トグル
   ========================================================= */
.form-section { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 30px 0 4px; padding-top: 18px; border-top: 1px dashed var(--line); }
.form-section svg { width: 20px; height: 20px; color: var(--blue); }
.field-help { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.concierge-edit { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.concierge-preview { position: sticky; top: 90px; background: linear-gradient(180deg, #eef5fd, #fff); border: 1.5px solid var(--line); border-radius: 18px; padding: 18px 14px; text-align: center; margin-top: 14px; }
.cp-media { width: 132px; height: 132px; margin: 0 auto; border-radius: 24px; overflow: hidden; background: #fff; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(15,42,92,.18); display: flex; align-items: center; justify-content: center; }
.cp-media .avatar-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-placeholder { color: var(--sky-300); }
.cp-placeholder svg { width: 56px; height: 56px; }
.cp-name { margin-top: 10px; font-weight: 800; color: var(--navy); }
.cp-bubble { margin-top: 10px; background: #fff; border: 1px solid #d3e5f8; border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-size: 12.5px; text-align: left; color: var(--ink); }
.cp-caption { margin-top: 10px; font-size: 11px; color: var(--muted); }
input[type=file] { width: 100%; padding: 10px; border: 1.5px dashed var(--sky-300); border-radius: 12px; background: var(--pale-2); font-size: 13px; }
.bot-avatar.has-media { padding: 0; overflow: hidden; background: #fff; border: 2px solid #fff; }
.bot-avatar .avatar-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.strict-toggle { margin: 10px 0 2px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.switch-sm .switch { width: 46px; height: 26px; }
.switch-sm .switch-slider::before { width: 18px; height: 18px; left: 4px; top: 4px; }
.switch-sm .switch input:checked + .switch-slider::before { transform: translateX(20px); }
.switch-sm .switch-text strong { font-size: 13.5px; }
.switch-sm .switch-text small { font-size: 11.5px; }
.toggle-saved { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--ok-fg); font-weight: 700; }
@media (max-width: 720px) { .concierge-edit { grid-template-columns: 1fr; } .concierge-preview { position: static; } }

/* v1.9 ラジオカード */
.radio-cards { display: grid; gap: 10px; margin-top: 12px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 400; }
.radio-card:hover { border-color: var(--sky-300); }
.radio-card input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.radio-card span { display: flex; flex-direction: column; }
.radio-card strong { color: var(--navy); font-size: 14px; }
.radio-card small { color: var(--muted); font-size: 12px; }
.radio-card:has(input:checked) { border-color: var(--blue); background: var(--pale-2); box-shadow: 0 0 0 3px rgba(47,111,216,.12); }
.ftp-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.ftp-summary span { background: var(--pale); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--navy); }
.ftp-summary span b { font-size: 15px; margin-right: 2px; }
.ftp-summary span.is-err { background: var(--ng-bg); color: var(--ng-fg); }
.ftp-files-wrap summary { cursor: pointer; font-size: 13px; color: var(--blue); font-weight: 700; margin-top: 8px; }
.ftp-files li.is-skipped::before { background: #c9d6e6; }
.scope-cards { margin-top: 6px; }

/* =========================================================
   v1.9 会話ログ分析
   ========================================================= */
:root { --i-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 20h16M7 16v-5M12 16V6M17 16v-8'/%3E%3C/svg%3E"); }
.top-nav nav a[href*="analytics"]::before { -webkit-mask-image: var(--i-chart); mask-image: var(--i-chart); }
.container.an-wide { max-width: 1120px; }
.an-head { padding: 22px 28px; }
.an-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.an-filters label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.an-filters select { width: auto; min-width: 160px; padding: 8px 12px; font-size: 14px; }
.an-range { display: inline-flex; background: var(--pale); border-radius: 999px; padding: 3px; }
.an-range a { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--navy); }
.an-range a:hover { text-decoration: none; background: #dcebfb; }
.an-range a.active { background: var(--blue); color: #fff; }
.an-csv { margin: 0 0 0 auto; }
.an-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.an-kpis .stat-value small { font-size: 14px; font-weight: 700; color: var(--muted); margin-left: 3px; }
.an-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0 22px; }
.an-chart { width: 100%; height: auto; display: block; margin-top: 4px; }
.an-grid { stroke: #e6eef8; stroke-width: 1; }
.an-base { stroke: #c9d6e6; stroke-width: 1; }
.an-tick, .an-xlabel { fill: var(--muted); font-size: 11px; font-family: inherit; }
.an-bar { fill: var(--blue); }
.an-hit { fill: transparent; }
.an-col { cursor: default; outline: none; }
.an-col.is-hover .an-bar, .an-col:focus .an-bar { fill: #5b93e6; }
.an-col:focus .an-hit { fill: rgba(47,111,216,.06); }
.an-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--navy-deep); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 8px; box-shadow: 0 6px 16px rgba(15,42,92,.25); white-space: nowrap; }
.an-details { margin-top: 8px; }
.an-details summary { cursor: pointer; font-size: 12.5px; color: var(--blue); font-weight: 700; }
.an-table { font-size: 13px; }
.an-table td, .an-table th { padding: 9px 12px; }
.an-nowrap { white-space: nowrap; }
.an-hbars { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.an-hbars li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 13px; }
.an-hbar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.an-hbar-track { height: 14px; display: block; }
.an-hbar { display: block; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; }
.an-hbar-val { text-align: right; font-weight: 700; color: var(--navy); }
.an-topq { margin: 6px 0 0; padding-left: 22px; font-size: 13.5px; }
.an-topq li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.an-topq li span { display: inline; }
.an-topq li b { float: right; color: var(--navy); margin-left: 10px; }
.an-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.an-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--pale); color: var(--navy); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.an-chip b { background: #fff; color: var(--blue); border-radius: 999px; padding: 0 7px; font-size: 11.5px; }
.an-chip:hover { background: #dcebfb; text-decoration: none; }
.an-empty { color: var(--muted); font-size: 13.5px; }
.an-meta { font-size: 12.5px; color: var(--muted); }
.an-convo { display: grid; gap: 10px; margin: 12px 0; }
.an-msg { border-radius: 14px; padding: 10px 14px; max-width: 86%; }
.an-msg.is-user { background: var(--pale); justify-self: end; }
.an-msg.is-bot { background: #fff; border: 1.5px solid var(--line); }
.an-msg-head { font-size: 12px; font-weight: 700; color: var(--navy); }
.an-msg-head span { font-weight: 400; color: var(--muted); }
.an-msg-body { font-size: 14px; margin-top: 4px; }
.an-msg-page { font-size: 11.5px; color: var(--muted); margin-top: 4px; word-break: break-all; }
@media (max-width: 720px) { .an-two { grid-template-columns: 1fr; } .an-csv { margin-left: 0; } }
.an-table .an-num{text-align:right;font-variant-numeric:tabular-nums;width:56px;}
/* v1.9.1 古い記載の自動補正 */
.df-box{margin:10px 0 6px;padding:12px 16px;border:1px solid #d9e7f7;border-radius:12px;background:#f5f9ff;font-size:13px;color:#2a4466;}
.df-box p{margin:4px 0;display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.df-box svg{width:16px;height:16px;color:#2f6fd8;flex:none;}
.df-box small{color:#5d7391;}
.df-table{width:100%;border-collapse:collapse;margin-top:8px;background:#fff;border-radius:8px;overflow:hidden;}
.df-table th,.df-table td{padding:7px 10px;border-bottom:1px solid #e6eef8;text-align:left;font-size:13px;}
.df-table th{background:#eaf2fd;color:#36557d;font-weight:600;}
/* v1.9.2 サイトの種類ごとの設置方法 */
.pf-title{font-size:15px;margin:22px 0 10px;color:#12294d;}
.pf-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid #dbe7f6;margin-bottom:14px;}
.pf-tab{display:inline-flex;align-items:center;gap:6px;background:none;border:none;border-bottom:3px solid transparent;color:#5d7391;font-size:14px;font-weight:600;padding:9px 12px;cursor:pointer;border-radius:0;box-shadow:none;margin:0;}
.pf-tab svg{width:16px;height:16px;}
.pf-tab:hover{color:#2459c4;background:none;transform:none;}
.pf-tab.is-active{color:#2459c4;border-bottom-color:#2f6fd8;}
.pf-tab:focus-visible{outline:2px solid #2f6fd8;outline-offset:2px;}
.pf-panel{font-size:14px;color:#2a4466;}
.pf-lead{margin:6px 0 10px;line-height:1.7;}
.pf-steps{margin:8px 0 12px;padding-left:1.4em;line-height:1.8;}
.pf-steps li{margin:4px 0;}
.pf-downloads{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 10px;}
.pf-downloads .btn svg{width:15px;height:15px;}
/* v1.9.3 ページごとの回答の確認 */
.ai-page-label{display:block;font-size:13px;font-weight:600;color:#36557d;margin:4px 0 6px;}
.ai-page-label small{display:block;font-weight:400;color:#5d7391;margin-top:2px;}
#cbw-ai-page{margin-bottom:10px;}
.ai-scope{font-size:12px;color:#2459c4;background:#eaf2fd;border-radius:999px;padding:4px 10px;display:inline-block;margin:0 0 8px;}
/* v1.9.5 ログインの確認コード(ワンタイムパスワード) */
.auth.auth-single{grid-template-columns:1fr;}
.auth.auth-single .auth-panel{min-height:100vh;}
.otp-box .otp-brand{display:flex;}
.otp-timer{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0 6px;padding:10px 14px;border-radius:12px;background:#eef5ff;border:1px solid #d5e4f6;color:#1d4fa8;font-weight:700;font-size:14px;font-variant-numeric:tabular-nums;}
.otp-timer svg{width:18px;height:18px;flex:none;}
.otp-timer .otp-bar{flex-basis:100%;height:5px;border-radius:999px;background:#d8e6f8;overflow:hidden;}
.otp-timer .otp-bar span{display:block;height:100%;background:linear-gradient(90deg,#4aa8f0,#2459c4);border-radius:999px;transition:width 1s linear;}
.otp-timer.is-warn{background:#fff7e8;border-color:#f3d9a4;color:#9a5b00;}
.otp-timer.is-warn .otp-bar span{background:#e3a32b;}
.otp-timer.is-expired{background:#fdeef0;border-color:#f3c3ca;color:#a1202f;}
.otp-timer.is-expired .otp-bar span{width:0 !important;}
.otp-input{font-size:24px !important;letter-spacing:.35em;text-align:center;font-variant-numeric:tabular-nums;}
.otp-resend{margin-top:18px;padding-top:16px;border-top:1px dashed #d5e4f6;}
.otp-resend-text{font-size:13px;color:#5d7391;margin:0 0 8px;}
.otp-resend button{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:6px;}
.otp-resend button svg{width:16px;height:16px;}
.otp-resend button:disabled{opacity:.55;cursor:not-allowed;}
/* v1.9.5 バックアップと復元 */
.backup-opts{margin:6px 0 4px;padding:10px 14px;border:1px solid #d9e7f7;border-radius:12px;background:#f7fbff;}
.backup-opts .check-row{margin:4px 0;}
.backup-opts .backup-sub{padding-left:22px;font-size:13px;color:#36557d;}
.backup-box{margin-top:16px;padding:14px 16px;border:1px solid #d9e7f7;border-radius:14px;background:#fff;}
.backup-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.backup-head strong{display:inline-flex;align-items:center;gap:6px;color:#12294d;}
.backup-head svg{width:18px;height:18px;color:#2f6fd8;}
.backup-table td a{display:inline-flex;align-items:center;gap:4px;}
.backup-table td a svg{width:14px;height:14px;}
.backup-table small{color:#5d7391;}
.ftp-files li.is-restored span{color:#12703f;}
.otp-box .otp-brand{align-items:center;gap:10px;}
/* v1.9.7 AIインタビューで学習 */
.iv-lead{font-size:14px;color:#36557d;line-height:1.8;margin:6px 0 10px;}
.iv-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;}
.iv-opts{display:flex;flex-direction:column;gap:4px;margin:4px 0 14px;padding:10px 14px;border:1px solid #d9e7f7;border-radius:12px;background:#f7fbff;}
.iv-h3{font-size:15px;margin:22px 0 10px;color:#12294d;display:flex;align-items:center;gap:6px;}
.iv-h3 svg{width:18px;height:18px;color:#2f6fd8;}
.iv-h3 small{font-weight:400;color:#5d7391;}
.iv-progress{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#1d4fa8;margin-bottom:14px;}
.iv-bar{height:6px;border-radius:999px;background:#e3ecf7;overflow:hidden;}
.iv-bar span{display:block;height:100%;width:0;background:linear-gradient(90deg,#4aa8f0,#2459c4);border-radius:999px;transition:width .4s;}
.iv-qwrap{display:flex;gap:14px;align-items:flex-start;}
.iv-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 4px 14px rgba(36,89,196,.18);flex:none;background:#fff;}
.iv-qbox{flex:1;min-width:0;background:linear-gradient(180deg,#f2f8ff,#eaf3fd);border:1px solid #d5e4f6;border-radius:4px 18px 18px 18px;padding:14px 16px;}
.iv-qmeta{display:flex;gap:6px;margin-bottom:6px;}
.iv-question{font-size:18px;font-weight:700;color:#12294d;line-height:1.6;margin:0 0 10px;}
.iv-answer{margin-top:18px;}
.iv-mic-row{display:flex;align-items:center;gap:14px;margin-bottom:10px;}
.iv-mic{width:64px;height:64px;border-radius:50%;border:none;background:linear-gradient(135deg,#4aa8f0,#2459c4);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none;box-shadow:0 6px 18px rgba(36,89,196,.3);padding:0;}
.iv-mic svg{width:28px;height:28px;}
.iv-mic.is-on{background:#e5484d;box-shadow:0 0 0 0 rgba(229,72,77,.5);animation:iv-pulse 1.3s infinite;}
@keyframes iv-pulse{0%{box-shadow:0 0 0 0 rgba(229,72,77,.45)}70%{box-shadow:0 0 0 14px rgba(229,72,77,0)}100%{box-shadow:0 0 0 0 rgba(229,72,77,0)}}
@media (prefers-reduced-motion:reduce){.iv-mic.is-on{animation:none;}}
.iv-mic-text{font-size:13px;color:#36557d;line-height:1.6;}
.iv-answer textarea{font-size:15px;line-height:1.7;}
.iv-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;align-items:center;}
.iv-actions button,.iv-actions .btn{display:inline-flex;align-items:center;gap:6px;}
.iv-actions svg{width:16px;height:16px;}
.iv-msg{font-size:13px;color:#12703f;min-height:1.4em;margin:8px 0 0;}
.iv-msg.is-err,#iv-voice-note.is-err{color:#a1202f;}
.iv-learned{margin-top:8px;border-top:1px dashed #d5e4f6;}
.iv-qa{border:1px solid #e3ecf7;border-radius:12px;padding:10px 14px;margin-bottom:8px;background:#fff;}
.iv-qa-q{font-weight:700;color:#12294d;font-size:14px;}
.iv-qa-a{color:#36557d;font-size:14px;margin:4px 0 6px;white-space:pre-wrap;}
.iv-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid #e3ecf7;}
#iv-summary-text{font-size:14px;line-height:1.8;}
@media (max-width:600px){.iv-avatar{width:48px;height:48px;}.iv-question{font-size:16px;}.iv-foot button{width:100%;}}
.iv-cta{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:linear-gradient(135deg,#f2f8ff,#e6f1ff);border:1px solid #cfe2f8;}
.iv-cta strong{display:inline-flex;align-items:center;gap:6px;color:#12294d;}
.iv-cta strong svg{width:18px;height:18px;color:#2f6fd8;}
.iv-cta .btn{display:inline-flex;align-items:center;gap:6px;}
.iv-cta .btn svg,td .btn svg{width:15px;height:15px;}
.iv-app [hidden],#iv-summary[hidden],#iv-start[hidden],.iv-mic[hidden],.check-row[hidden]{display:none !important;}
/* v1.9.8 スマートフォンで表の操作ボタンが横にはみ出さないように */
@media (max-width:600px){
  .an-table td.an-nowrap{white-space:normal;}
  .an-table td .btn,.an-table td button{margin:2px 0;}
  .an-table{word-break:break-word;}
}
/* v2.0.0 資料の取り込み */
.imp-formats{margin:10px 0 0;padding-left:20px;font-size:13.5px;color:#36557d;line-height:1.8;}
.imp-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.imp-grid .card{margin-bottom:20px;}
@media (max-width:860px){.imp-grid{grid-template-columns:1fr;gap:0;}}
.imp-drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;border:2px dashed var(--sky-300);border-radius:16px;padding:26px 14px;background:var(--pale-2);cursor:pointer;color:var(--muted);font-size:13px;font-weight:400;margin:6px 0 4px;transition:background .15s,border-color .15s;}
.imp-drop strong{color:var(--ink);font-size:15px;}
.imp-drop.is-over,.imp-drop:hover{background:var(--pale);border-color:var(--blue);}
.imp-drop.has-files{border-style:solid;border-color:var(--blue);}
.imp-drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;}
.imp-drop-icon svg{width:34px;height:34px;color:var(--blue);}
.imp-picked{color:var(--blue-700);font-weight:700;word-break:break-all;}
.imp-head{font-size:12px;color:var(--muted);margin-top:2px;word-break:break-all;}
.imp-view{white-space:pre-wrap;word-break:break-word;background:var(--pale-2);border:1px solid var(--line);border-radius:12px;padding:14px;font-size:13px;line-height:1.7;max-height:520px;overflow:auto;font-family:inherit;}
.ai-sources span{background:#fff4d1;border-radius:999px;padding:3px 12px;}
h1 svg{width:26px;height:26px;vertical-align:-4px;margin-right:4px;color:var(--blue);}
/* v2.0.0 決済・お支払い */
.btn-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px;}
.btn-row button{margin-top:0;}
.form-row3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 14px;}
@media (max-width:760px){.form-row3{grid-template-columns:1fr;}}
.big-switch{margin:20px 0 6px;padding:14px 16px;border:1.5px solid var(--line);border-radius:14px;background:var(--pale-2);}
.bill-state{border-radius:14px;padding:14px 18px;margin:12px 0 4px;border:1px solid var(--line);background:var(--pale-2);}
.bill-state p{margin:6px 0 0;font-size:14px;color:#36557d;line-height:1.7;}
.bill-state-label{font-weight:800;font-size:16px;color:var(--navy);}
.bill-state.is-ok{background:#effbf4;border-color:#bfe9d1;}.bill-state.is-ok .bill-state-label{color:var(--ok-fg);}
.bill-state.is-warn{background:#fff9e6;border-color:#f3dc95;}.bill-state.is-warn .bill-state-label{color:var(--warn-fg);}
.bill-state.is-ng{background:var(--ng-bg);border-color:#f2b9bf;}.bill-state.is-ng .bill-state-label{color:var(--ng-fg);}
.bill-state.is-info{background:var(--pale);border-color:var(--sky-300);}
.bill-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0 0;}
.bill-grid div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;}
.bill-grid dt{font-size:12px;color:var(--muted);}.bill-grid dd{margin:2px 0 0;font-weight:700;color:var(--navy);font-size:14.5px;}
@media (max-width:760px){.bill-grid{grid-template-columns:1fr 1fr;}}
.bill-card{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:14px 18px;border-radius:14px;background:linear-gradient(135deg,#17386f,#2f6fd8);color:#fff;max-width:420px;}
.bill-card-brand{font-weight:800;letter-spacing:.04em;}.bill-card-num{font-size:18px;letter-spacing:.12em;}.bill-card-exp{font-size:12.5px;opacity:.85;}
.bill-change{margin-top:6px;}
.bill-change>summary{list-style:none;display:inline-flex;cursor:pointer;}
.bill-change>summary::-webkit-details-marker{display:none;}
.bill-change[open]>summary{margin-bottom:12px;}
.bill-err{font-size:12px;color:var(--ng-fg);margin-top:2px;}
.bill-table td,.bill-table th{vertical-align:top;}
@media (max-width:600px){.bill-table{font-size:12.5px;word-break:break-word;}}
.card-box{border:1.5px solid var(--line);border-radius:14px;padding:12px 14px 6px;background:#fff;margin:6px 0 4px;}
.card-box-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-weight:700;color:var(--navy);font-size:14px;margin-bottom:8px;}
.card-box-head svg{width:20px;height:20px;color:var(--blue);}
.card-brands{font-weight:400;font-size:11.5px;color:var(--muted);}
.card-input{min-height:56px;}
.card-loading{font-size:13px;color:var(--muted);padding:14px 2px;}
.card-msg{font-size:13px;margin:4px 0 0;min-height:1em;color:var(--muted);}
.card-msg.is-err{color:var(--ng-fg);font-weight:700;}
.card-safe{display:flex;gap:6px;align-items:flex-start;font-size:11.5px;color:var(--muted);margin:6px 0 4px;}
.card-safe svg{width:14px;height:14px;flex:none;margin-top:2px;}
.price-box{border:1.5px solid var(--sky-300);background:linear-gradient(135deg,#f4f9ff,#e8f2ff);border-radius:14px;padding:12px 16px;margin:4px 0 12px;}
.price-main{font-size:15px;color:var(--navy);font-weight:700;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;}
.price-main strong{font-size:24px;color:var(--blue-700);}
.price-main small{font-size:12px;color:var(--muted);font-weight:400;}
.price-free{background:var(--grad-btn);color:#fff;border-radius:999px;padding:2px 12px;font-size:13px;}
.price-box p{margin:6px 0 0;font-size:12.5px;color:#36557d;line-height:1.7;}
.agree-row{display:flex;gap:10px;align-items:flex-start;font-size:13px;font-weight:400;margin:12px 0 0;line-height:1.6;}
.agree-row input{width:18px;height:18px;margin-top:2px;flex:none;accent-color:var(--blue);}
.btn-hint{font-size:12px;color:var(--warn-fg);margin:6px 0 0;min-height:1em;}
.btn-hint:empty{display:none;}
button:disabled,button[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none;filter:grayscale(.3);}
.notice svg{width:18px;height:18px;vertical-align:-3px;}
/* v2.0.0 運営者メニュー・お客様管理・サポート */
:root {
  --i-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.6-3.4 3.2-5.5 6.5-5.5s5.9 2.1 6.5 5.5M16 4.8a3.5 3.5 0 0 1 0 6.4M18 14.5c2 .7 3.3 2.6 3.5 5.5'/%3E%3C/svg%3E");
  --i-volume: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5h3.5L12 5.5v13l-4.5-4H4z'/%3E%3Cpath d='M15.5 9a4 4 0 0 1 0 6M18 6.5a7.5 7.5 0 0 1 0 11'/%3E%3C/svg%3E");
  --i-help: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.3a2.6 2.6 0 0 1 5 .9c0 1.7-2.5 2.3-2.5 4M12 17.2h.01'/%3E%3C/svg%3E");
  --i-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E");
}
.top-nav nav a[href*="admin_customers"]::before { -webkit-mask-image: var(--i-users); mask-image: var(--i-users); }
.top-nav nav a[href*="admin_voice"]::before { -webkit-mask-image: var(--i-volume); mask-image: var(--i-volume); }
.top-nav nav a[href*="admin_support"]::before { -webkit-mask-image: var(--i-help); mask-image: var(--i-help); }
.top-nav.is-admin nav{flex-wrap:wrap;row-gap:4px;}
.voice-provider[hidden]{display:none !important;}
.voice-provider{border-top:1px dashed var(--line);margin-top:16px;padding-top:4px;}
input[type=range]{width:100%;max-width:360px;accent-color:var(--blue);}
.dash-bill{margin:0 0 18px;}
.dash-bill .bill-state-label{display:flex;align-items:center;gap:6px;}
.dash-bill .bill-state-label svg,.bill-state-label svg{width:18px;height:18px;}
.cust-search{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px;}
.cust-search input,.cust-search select{width:auto;flex:1 1 200px;margin:0;}
.cust-search select{flex:0 1 180px;}
.cust-list{display:flex;flex-direction:column;gap:10px;}
.cust-row{display:flex;flex-wrap:wrap;gap:12px 20px;justify-content:space-between;align-items:flex-start;border:1px solid var(--line);border-radius:14px;padding:12px 16px;background:#fff;}
.cust-row:target{box-shadow:0 0 0 3px rgba(47,111,216,.25);}
.cust-main{flex:1 1 380px;min-width:0;}
.cust-main strong{color:var(--navy);font-size:15px;}
.cust-email{font-size:12.5px;color:var(--muted);word-break:break-all;}
.cust-badges{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-top:6px;font-size:12.5px;}
.cust-card{display:inline-flex;align-items:center;gap:4px;color:var(--navy);}
.cust-card svg{width:15px;height:15px;}
.cust-next{color:var(--muted);}
.cust-note{display:flex;gap:6px;margin:8px 0 0;}
.cust-note input{margin:0;padding:6px 10px;font-size:13px;}
.cust-side{flex:0 0 auto;}
.invite-url{font-size:12px;padding:6px 8px;margin:0;min-width:240px;}
tr.is-new td{background:#fff9e6;}
.cust-note button,.cust-search button{white-space:nowrap;flex:none;}
/* v2.0.1 運営者がお客様の画面を表示中 */
.imp-bar{position:sticky;top:0;z-index:50;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:10px 20px;background:#8a6100;color:#fff;font-size:13.5px;box-shadow:0 4px 14px rgba(0,0,0,.18);}
.imp-bar.is-edit{background:#a1202f;}
.imp-bar-text{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.imp-bar-text svg{width:18px;height:18px;flex:none;}
.imp-mode{display:inline-block;margin-left:8px;background:rgba(255,255,255,.22);border-radius:999px;padding:1px 10px;font-size:12px;font-weight:700;}
.imp-bar-end{color:#fff;font-weight:800;background:rgba(255,255,255,.18);border:1.5px solid rgba(255,255,255,.7);border-radius:999px;padding:5px 14px;white-space:nowrap;text-decoration:none;}
.imp-bar-end:hover{background:rgba(255,255,255,.3);color:#fff;}
.imp-flash{max-width:1060px;margin:12px auto 0;padding:10px 16px;border-radius:12px;background:var(--warn-bg);color:var(--warn-fg);font-weight:700;font-size:13.5px;}
.cust-view{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;justify-content:flex-end;}
.cust-view form{margin:0;}
.cust-view button{margin:0;padding:7px 14px;font-size:12.5px;}
@media (max-width:600px){.imp-bar{padding:8px 12px;font-size:12.5px;}.cust-view{justify-content:flex-start;}}
.cust-name-link{background:none;border:0;padding:0;margin:0;box-shadow:none;font:inherit;font-weight:800;font-size:15px;color:var(--blue-700);cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-align:left;}
.cust-name-link:hover{background:none;color:var(--blue);box-shadow:none;transform:none;}
/* v2.1.0 パスワードの表示ボタン・ログイン画面のバージョン表示 */
.has-pw-toggle{position:relative;}
.pw-wrap{display:block;}
.has-pw-toggle input{padding-right:48px !important;}
.pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:38px;height:38px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;box-shadow:none;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer;}
.pw-toggle:hover,.pw-toggle:focus-visible{background:var(--pale);color:var(--blue-700);box-shadow:none;transform:translateY(-50%);filter:none;}
.pw-toggle.is-on{color:var(--blue);}
.pw-toggle svg{width:20px;height:20px;position:static !important;transform:none !important;color:inherit !important;}
.auth-ver{position:fixed;top:14px;right:16px;z-index:60;}
.auth-ver .ver-badge{background:rgba(23,56,111,.88);color:#fff;border:1.5px solid rgba(255,255,255,.55);box-shadow:0 4px 14px rgba(15,42,92,.25);}
.auth-ver .ver-badge:hover{background:#fff;color:var(--blue-700);}
@media (max-width:600px){.auth-ver{top:10px;right:10px;}}
.advice-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 18px;background:linear-gradient(135deg,#fff9e6,#fff2cc);border:1px solid #f3dc95;}
.advice-text{flex:1 1 360px;}
.advice-text strong{display:inline-flex;align-items:center;gap:6px;color:#5c4100;}
.advice-text strong svg{width:18px;height:18px;color:#c48a00;}
.advice-btns{display:flex;flex-wrap:wrap;gap:8px;}
.advice-btns .btn,.advice-btns button{margin:0;display:inline-flex;align-items:center;gap:6px;}
.advice-btns svg{width:15px;height:15px;}
/* v2.1.1 設定画面の「設定の仕方をチャットで聞く」 */
.help-chat{background:linear-gradient(135deg,#f2f8ff,#e6f1ff);border:1px solid #cfe2f8;border-radius:16px;padding:14px 18px;margin-bottom:18px;}
.help-chat-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;color:var(--navy);}
.help-chat-head svg{width:20px;height:20px;color:var(--blue);}
.help-chat-head span{font-size:12.5px;color:var(--muted);flex-basis:100%;}
.help-chat-qs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.help-q{margin:0;padding:7px 14px;font-size:13px;font-weight:700;border-radius:999px;background:#fff;color:var(--blue-700);border:1.5px solid var(--sky-300);box-shadow:none;}
.help-q:hover{background:var(--pale);color:var(--blue-700);box-shadow:none;transform:none;filter:none;}
.help-q.help-open{background:var(--grad-btn);color:#fff;border-color:transparent;}

/* v2.1.2 音声設定: 実際に使われる声 */
.tts-status { display:flex; flex-direction:column; gap:4px; margin:12px 0 18px; padding:12px 16px; border-radius:12px; border:1px solid #d5e4f6; background:#f4f9ff; font-size:14px; }
.tts-status span { font-size:13px; color:#4a5d7a; }
.tts-status.is-ok { border-color:#bfe5cc; background:#effaf3; }
.tts-status.is-ok strong::before { content:"✓ "; color:#1f8a4c; }
.tts-status.is-ng { border-color:#f3c2c8; background:#fdf0f2; }
.tts-status.is-ng strong::before { content:"⚠ "; color:#a1202f; }
.tts-status.is-ng span { color:#a1202f; }
.key-warn { margin-top:6px; }

/* v2.2.0 利益アップの提案 */
.pi-head { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px 24px; align-items:flex-start; }
.pi-head > div:first-child { flex:1 1 420px; }
.pi-run { display:flex; flex-direction:column; align-items:flex-end; gap:4px; min-width:200px; }
.pi-run small { color:#5b7092; font-size:12px; }
.pi-last { font-size:13px; color:#4a5d7a; margin:8px 0 0; }
.pi-tip { display:flex; gap:8px; align-items:flex-start; }
.pi-card { border-left:4px solid #f1c24b; }
.pi-card.is-done { border-left-color:#9bd3ad; opacity:.8; }
.pi-tags { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-bottom:6px; }
.pi-new { background:#e5484d; color:#fff; }
.pi-conf { font-size:12px; color:#4a5d7a; background:#f1f5fb; border-radius:999px; padding:2px 10px; }
.pi-site { font-size:12px; color:#5b7092; }
.pi-title { font-size:19px; line-height:1.5; margin:4px 0 10px; }
.pi-sec { margin:12px 0; }
.pi-sec h3 { font-size:13px; color:#2f6fd8; margin:0 0 4px; letter-spacing:.02em; }
.pi-sec p { margin:0 0 6px; line-height:1.75; }
.pi-num { font-weight:700; color:#12294d; }
.pi-est { background:#f4f9ff; border:1px solid #d5e4f6; border-radius:12px; padding:10px 14px; }
.pi-src { margin:4px 0 0; padding-left:20px; font-size:13px; }
.pi-src small { color:#7a8aa3; }
.pi-actions { margin:0; padding-left:20px; line-height:1.8; }
.pi-ex summary { cursor:pointer; font-size:13px; color:#2f6fd8; }
.pi-ex ul { margin:6px 0 0; padding-left:20px; font-size:13px; color:#33476a; }
.pi-btns { flex-wrap:wrap; gap:8px; }
.pi-profile { border-top:1px solid #e3ecf7; padding-top:12px; margin-top:12px; }
.pi-profile:first-of-type { border-top:0; padding-top:0; }
.pi-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:0 16px; }
.pi-dash { background:linear-gradient(135deg,#fffaf0,#fff3d6); border:1px solid #f1d58a; }
.pi-dash-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.pi-dash ol { margin:10px 0 0; padding-left:22px; line-height:1.7; }
.pi-dash li small { display:block; color:#6b5a2a; font-size:12.5px; }
.pi-admin{border:1px solid #f1d58a;background:#fffaf0;border-radius:12px;padding:12px 16px;margin:14px 0;} .pi-admin h3{margin:0 0 6px;font-size:15px;display:flex;gap:6px;align-items:center;}
.top-nav nav a[href*="insights"]::before { -webkit-mask-image: var(--i-chart); mask-image: var(--i-chart); }
.pi-dash-head strong { display:flex; align-items:center; gap:8px; font-size:16px; }
.pi-dash-head strong svg, .pi-head h1 svg, .pi-admin h3 svg { width:20px; height:20px; flex:none; }
.pi-head h1 { display:flex; align-items:center; gap:8px; }

/* v2.2.1 デザイン(ログイン画面の背景写真) */
:root { --i-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E"); }
.top-nav nav a[href*="admin_design"]::before { -webkit-mask-image: var(--i-image); mask-image: var(--i-image); }
.bg-current { position:relative; border-radius:16px; overflow:hidden; min-height:220px; display:flex; align-items:center; justify-content:center; background:#0f2a5c center/cover no-repeat; margin:10px 0 6px; }
.bg-current .bg-card { background:rgba(255,255,255,.96); border-radius:14px; padding:16px 22px; box-shadow:0 18px 40px rgba(3,12,30,.4); font-weight:800; color:var(--navy); }
.bg-current .bg-veil { position:absolute; inset:0; }
.bg-presets { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:14px; margin-top:10px; }
.bg-preset { border:1.5px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; display:flex; flex-direction:column; }
.bg-preset.is-current { border-color:var(--blue); box-shadow:0 0 0 3px rgba(47,111,216,.18); }
.bg-preset img { width:100%; aspect-ratio:3/2; object-fit:cover; display:block; background:#e8eef7; }
.bg-preset .bg-preset-body { padding:10px 12px 12px; display:flex; flex-direction:column; gap:8px; flex:1; }
.bg-preset .bg-preset-body small { color:var(--muted); font-size:12px; }
.bg-preset form { margin:auto 0 0; }
.top-nav nav a[href*="account"]::before { -webkit-mask-image: var(--i-users); mask-image: var(--i-users); }
.emailchg-step { background:var(--pale-2); border:1px solid var(--line); border-radius:14px; padding:14px 18px; margin-top:8px; }
.emailchg-step .btn-row { gap:8px; flex-wrap:wrap; }
.cust-email-edit{margin-top:6px;} .cust-email-edit summary{cursor:pointer;font-size:12.5px;color:var(--blue);}

/* v2.2.4 セキュリティ */
.totp-qr { width:220px; height:220px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:6px; margin:10px 0; }
.totp-qr svg { width:100%; height:100%; display:block; }
.totp-steps { padding-left:20px; line-height:1.8; }
.totp-recovery { background:#fffaf0; border:1.5px solid #f1d58a; border-radius:12px; padding:12px 16px; margin:10px 0; }
.totp-recovery ul { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:6px 14px; list-style:none; padding:0; margin:8px 0 0; }
.totp-recovery code { font-size:15px; letter-spacing:.05em; }
.totp-form { max-width:420px; }
.sec-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:0 16px; }
.sec-status td { vertical-align:top; }
.top-nav nav a[href*="admin_security"]::before { -webkit-mask-image: var(--i-key); mask-image: var(--i-key); }
@media (min-width: 721px) { .top-nav .brand { flex: none; } .top-nav .brand-text { white-space: nowrap; } .top-nav.is-admin nav { flex-wrap: wrap; row-gap: 4px; } }
.field-help code, .card p code { word-break: break-all; overflow-wrap: anywhere; }

/* v2.2.5 利用規約 */
:root { --i-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.top-nav nav a[href*="admin_terms"]::before { -webkit-mask-image: var(--i-doc); mask-image: var(--i-doc); }
@media (max-width: 420px) { .auth-box.is-terms #terms-accept { font-size: 14px; padding: 14px 10px; } }

/* v2.2.9 削除 */
.btn-danger, button.btn-danger { background: #fff; border: 1.5px solid #f2b9bf; box-shadow: none; }
button.btn-danger:disabled { opacity: .5; cursor: not-allowed; }
.cust-delete summary { color: var(--ng-fg) !important; }
.cust-del-form input[type=email], .cust-del-form input[type=password] { max-width: 340px; }

/* v2.3.0 多言語 */
.an-msg-tr { margin-top: 6px; padding: 7px 10px; border-left: 3px solid #9cc8f5; background: #f3f8fe; border-radius: 6px; font-size: 13px; color: #33475f; }
.an-msg-tr span { display: inline-block; font-size: 11px; font-weight: 800; color: #2f6fd8; margin-right: 6px; }

/* v2.4.0 ドメインごとの契約・月払い/年払い */
.bill-plans{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 10px;}
.bill-plan{border:1.5px solid var(--line);border-radius:14px;padding:12px 16px;background:#fff;}
.bill-plan span{display:block;font-size:13px;font-weight:800;color:var(--navy);}
.bill-plan span em{font-style:normal;font-size:11px;background:#fff1d6;color:#9a5b00;border-radius:999px;padding:2px 8px;margin-left:6px;}
.bill-plan strong{font-size:24px;color:var(--navy);}
.bill-plan small{font-size:12px;color:var(--muted);margin-left:4px;}
.bill-plan.is-best{border-color:#f3c46b;background:#fffaf0;}
.bill-rules{margin:8px 0 0;padding-left:1.2em;font-size:13.5px;line-height:1.8;color:#36557d;}
.bill-contract{border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:0 0 12px;background:var(--pale-2);}
.bill-contract-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.bill-domain{font-size:16px;color:var(--navy);word-break:break-all;}
.bill-contract .bill-grid{margin-top:10px;}
.bill-msg{margin:8px 0 0;}
.bill-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;align-items:center;}
.bill-actions form{margin:0;display:flex;gap:6px;align-items:center;flex-wrap:wrap;}
.bill-deadline{margin:8px 0 0;}
.new-site-plan{border:1.5px solid var(--sky-300);border-radius:14px;padding:12px 16px;background:var(--pale);margin:6px 0 14px;}
.new-site-plan label.check-row{margin:6px 0;}
@media (max-width:720px){.bill-plans{grid-template-columns:1fr;}.bill-grid{grid-template-columns:1fr 1fr;}}
.reg-plans{display:flex;flex-direction:column;gap:2px;margin:0 0 6px;}
.reg-plans .check-row{margin:4px 0;font-size:14px;}
.price-rows{display:flex;flex-wrap:wrap;gap:4px 18px;margin:6px 0 4px;font-weight:700;color:var(--navy);font-size:14px;}
.price-rows strong{font-size:22px;margin:0 2px;}
.price-rows small{font-size:11.5px;font-weight:500;color:var(--muted);}

/* v2.4.7: Q&A編集(どのBotで会話しているか・ほかのBotにコピー) */
.qna-conv { margin: 6px 0 10px; }
.qna-warn { line-height: 1.7; }
.qna-copy { margin: 18px 0 6px; padding: 14px 16px; border: 1px dashed #b9d3f3; border-radius: 12px; background: #f6faff; }
.qna-copy label { font-size: 13px; color: #3d5a80; }
.qna-copy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qna-copy-row select { width: auto; min-width: 200px; flex: 1 1 200px; margin: 0; }
.qna-copy-row button { margin: 0; }
.ai-qa { color: #12703f; }

/* v2.4.8: 範囲外の質問への案内(自動) / よく聞かれる質問への準備状況 */
.fb-auto { margin: 8px 0 4px; padding: 12px 16px; border: 1px solid #d9e7f7; border-radius: 12px; background: #f5f9ff; }
.fb-auto-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #36557d; margin-bottom: 6px; }
.fb-auto-head svg { width: 16px; height: 16px; color: #2f6fd8; flex: none; }
.fb-auto-text { font-size: 13.5px; line-height: 1.75; color: #1f3556; background: #fff; border: 1px solid #e6eef8; border-radius: 10px; padding: 10px 12px; word-break: break-all; }
.fb-auto .btn-small { margin: 10px 0 0; }
.rd-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rd-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid #e3ecf7; border-radius: 12px; background: #fff; }
.rd-mark { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.rd-site .rd-mark { background: #e3f6ea; color: #12703f; }
.rd-qna .rd-mark { background: #fff3d9; color: #8a5a00; }
.rd-none .rd-mark { background: #fde8ea; color: #a1202f; }
.rd-label { font-weight: 700; color: #12294d; font-size: 14px; }
.rd-state { font-size: 12px; font-weight: 700; margin-left: 6px; }
.rd-site .rd-state { color: #12703f; }
.rd-qna .rd-state { color: #8a5a00; }
.rd-none .rd-state { color: #a1202f; }
.rd-where { font-size: 12.5px; color: #5d7391; margin-top: 3px; word-break: break-all; }
.rd-hint { font-size: 12.5px; color: #36557d; margin-top: 3px; }
.rd-item .btn-small { margin: 0; white-space: nowrap; }
@media (max-width: 720px) { .rd-item { grid-template-columns: 28px 1fr; } .rd-item .btn-small { grid-column: 2; justify-self: start; } }
/* v2.4.9: 準備状況「一部だけ答えます」 */
.rd-partial .rd-mark { background: #fff3d9; color: #8a5a00; }
.rd-partial .rd-state { color: #8a5a00; }
/* v2.4.9: Q&Aとサイトの食い違い */
.qna-conflicts ul { margin: 6px 0 6px; padding-left: 1.2em; font-size: 13px; line-height: 1.7; }
.qna-conflicts strong { display: inline-flex; align-items: center; gap: 6px; }
.qna-conflicts strong svg { width: 16px; height: 16px; }
.qna-conflicts small { color: #5d7391; }
.qna-item.qna-conflict { border-left: 4px solid #f0b54a; padding-left: 12px; }
.qna-conflict-note { margin: 0 0 6px; font-size: 12.5px; color: #8a5a00; background: #fff6e3; border-radius: 8px; padding: 6px 10px; word-break: break-all; }

/* 地図で最寄り駅を調べる(v2.5.0) */
.st-box{margin-top:8px;}
.st-note{display:block;font-size:12px;color:#5d7391;margin-top:4px;}
.st-head{font-size:13px;font-weight:700;margin-top:10px;color:var(--navy);}
.st-list{margin:4px 0 6px;padding-left:18px;font-size:13px;line-height:1.7;}
.st-list a{margin-left:4px;}
.st-warn{font-size:12px;color:#8a6100;background:#fffaf0;border:1px solid #f1d58a;border-radius:8px;padding:6px 10px;margin:6px 0;}
.st-error{font-size:13px;color:var(--ng-fg);margin-top:6px;}
.st-ok{font-size:13px;color:#1f7a4d;margin-top:6px;font-weight:700;}
.st-answer{width:100%;box-sizing:border-box;font-size:13px;margin:4px 0 6px;}
/* v2.6.0 ドメインごとの「お支払い」(Squareの商品ライブラリのコース) */
.bill-courses{grid-template-columns:repeat(3,1fr);}
.bill-course-year{display:block;margin:4px 0 0!important;}
.bill-pay-open{margin-left:auto;}
.bill-pay-open.is-urgent{background:#d93a2b;border-color:#d93a2b;color:#fff;}
.bill-pay{margin:12px 0 0;padding:14px;border:1.5px solid var(--sky-300);border-radius:14px;background:#fff;}
.bill-pay fieldset{border:0;margin:0 0 10px;padding:0;}
.bill-pay legend{font-weight:800;color:var(--navy);font-size:13.5px;margin-bottom:6px;}
.bill-pay-courses{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.bill-pay-courses legend{grid-column:1/-1;}
.bill-pay-iv .check-row{margin:4px 0;}
.bill-pay-note{margin:4px 0 10px;}
@media (max-width:760px){.bill-courses,.bill-pay-courses{grid-template-columns:1fr;}}
/* v2.7.1 マイページのサイトの一覧: 無料期間の終わりの日と「お支払い」ボタン */
.dash-pay{margin:0 0 0 6px;padding:4px 12px;font-size:12.5px;vertical-align:middle;}
.dash-pay.is-urgent{background:#d93a2b;border-color:#d93a2b;color:#fff;}
.dash-pay.is-off{background:#e8eef6;border-color:#d3dce8;color:#7b8aa0;cursor:not-allowed;box-shadow:none;pointer-events:none;}
.dash-free{margin-left:6px;}
.dash-trial{margin-top:4px;font-size:12.5px;color:#36557d;}
.dash-trial .is-ng{color:var(--ng-fg);}

/* v2.7.3 サーバーのメモから読み取る */
.memo-box { margin: 10px 0 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--pale); padding: 4px 14px 12px; }
.memo-details > summary { cursor: pointer; list-style: none; padding: 10px 0 6px; }
.memo-details > summary::-webkit-details-marker { display: none; }
.memo-details > summary strong { display: block; font-size: 14px; }
.memo-details > summary small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.memo-box textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.memo-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.memo-actions small { font-size: 11.5px; color: var(--muted); flex: 1 1 240px; }
.memo-result { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.memo-head { font-weight: 700; margin: 0 0 6px; }
.memo-table { width: 100%; border-collapse: collapse; }
.memo-table th { text-align: left; white-space: nowrap; font-weight: 600; padding: 5px 10px 5px 0; vertical-align: top; width: 1%; color: var(--muted); }
.memo-table td { padding: 5px 0; overflow-wrap: anywhere; }
.memo-table td small { display: block; font-size: 11.5px; color: var(--muted); }
.memo-val { font-family: ui-monospace, Menlo, Consolas, monospace; margin-right: 6px; }
.memo-tag { display: inline-block; font-size: 11px; border-radius: 999px; padding: 1px 8px; background: #e8f0fe; color: #1a56c4; margin-left: 4px; }
.memo-tag-guess { background: #fff4d6; color: #8a5a00; }
.memo-tag-miss { background: #fde8ea; color: #a1202f; margin-left: 0; }
.memo-warn { color: #8a5a00; background: #fff8e6; border-radius: 8px; padding: 6px 8px; margin: 8px 0 0; font-size: 12.5px; }
.memo-undo { margin-top: 8px; font-size: 12px; padding: 5px 12px; }
.memo-guide { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.memo-guide-title { margin: 0 0 4px; }
.memo-guide-sub { font-weight: 700; margin: 10px 0 4px; }
.memo-why { margin: 0 0 6px; padding-left: 18px; font-size: 12px; color: var(--muted); }
.memo-steps { margin: 4px 0 6px; padding-left: 20px; }
.memo-steps li { margin: 3px 0; }
.memo-small { font-size: 12px; color: var(--muted); margin: 6px 0; overflow-wrap: anywhere; }
input.memo-filled { background: #eefaf2 !important; border-color: #47b36f !important; }
input.memo-guessed { background: #fff8e6 !important; border-color: #e0a100 !important; }

/* v2.7.5 お客様が見つからないとき */
.cust-diag { margin-top: 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--pale); }
.cust-diag > summary { cursor: pointer; font-weight: 700; }
.cust-diag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cust-diag-grid ul { margin: 4px 0 0; padding-left: 18px; }
.cust-diag-grid li { overflow-wrap: anywhere; }
@media (max-width: 720px) { .cust-diag-grid { grid-template-columns: 1fr; } }

/* v2.7.6 自動設置の結果(成功・一部失敗・失敗と理由) */
.ftp-banner { border-radius: 14px; padding: 14px 16px; margin: 0 0 16px; border: 1px solid; scroll-margin-top: 80px; }
.ftp-banner-ok { background: #eefaf2; border-color: #9fd9b4; }
.ftp-banner-partial { background: #fff8e6; border-color: #f0cf7a; }
.ftp-banner-ng { background: #fdecee; border-color: #f2a9b2; }
.ftp-banner-head { display: flex; gap: 12px; align-items: center; }
.ftp-banner-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; }
.ftp-banner-ok .ftp-banner-icon { background: #1f9d55; }
.ftp-banner-partial .ftp-banner-icon { background: #d69400; }
.ftp-banner-ng .ftp-banner-icon { background: #c62f42; }
.ftp-banner-label { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-right: 6px; background: rgba(0,0,0,.07); }
.ftp-banner-title { font-size: 16px; }
.ftp-banner-at { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.ftp-banner-lead { margin: 10px 0 0; font-size: 13.5px; }
.ftp-banner-more { margin: 8px 0 0; font-size: 12.5px; }
.ftp-reasons { margin-top: 10px; background: rgba(255,255,255,.75); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.ftp-reasons-head { font-weight: 700; margin: 0 0 4px; color: #a1202f; }
.ftp-reasons ol { margin: 0; padding-left: 20px; }
.ftp-reasons li { margin: 6px 0; }
.ftp-reasons li > span { display: block; margin-top: 3px; }
.ftp-reason-count { display: inline-block !important; margin-left: 6px; font-size: 11px; background: #fde8ea; color: #a1202f; border-radius: 999px; padding: 0 7px; }
.ftp-reason-paths { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.ftp-reason-fix { color: #2b3b55; }
.ftp-reason-detail { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.ftp-reason-detail code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }

/* v2.7.8 ドメインを管理から削除 */
.dash-del { background: none; border: none; box-shadow: none; padding: 4px 0; margin: 6px 0 0; font-size: 12px; font-weight: 400; white-space: nowrap; text-align: left; justify-content: flex-start; color: var(--ng-fg, #a1202f); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; width: auto; min-height: 0; }
.dash-del svg { width: 14px; height: 14px; }
/* マウスを乗せたとき・選んだとき: ほかのボタンの白い文字・影にならないよう、赤い文字のまま薄い赤の背景にする */
button.dash-del:hover, button.dash-del:focus-visible, button.dash-del:active { color: #8f1a2a; background: #fdecee; box-shadow: none; filter: none; transform: none; text-decoration: underline; border-radius: 8px; }
button.dash-del:focus-visible { outline: 2px solid #c62f42; outline-offset: 2px; }
button.dash-del { padding: 4px 6px; margin-left: -6px; border-radius: 8px; }
.dash-del-dialog { border: none; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(15, 30, 60, .3); }
.dash-del-dialog::backdrop { background: rgba(15, 30, 60, .45); }
.dash-del-dialog form { padding: 20px 22px; margin: 0; }
.dash-del-dialog h2 { font-size: 17px; margin: 0 0 12px; overflow-wrap: anywhere; }
.dash-del-warn { background: #fdecee; border: 1px solid #f2a9b2; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; color: #5c1620; }
.dash-del-warn p { margin: 0 0 6px; }
.dash-del-warn ul { margin: 0; padding-left: 18px; }
.dash-del-warn li { margin: 3px 0; }
.dash-del-agree { margin-top: 12px; font-weight: 700; }
.dash-del-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.dash-del-actions button { width: auto; margin: 0; }
.btn-danger-solid { background: #c62f42; color: #fff; border: none; }
.btn-danger-solid:hover { background: #a92536; }
.btn-danger-solid:disabled { background: #e3a7af; cursor: not-allowed; }

/* v2.8.1 分野を絞ったインタビュー(質問コーナー) */
.iv-focus { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid #cfe0f5; border-radius: 12px; background: #fff; }
.iv-focus label { display: block; margin-bottom: 6px; font-size: 14px; }
.iv-focus input { width: 100%; box-sizing: border-box; font-size: 15px; }
.iv-focus .field-help { margin: 6px 0 8px; }
.iv-focus-chips { display: flex; flex-wrap: wrap; gap: 6px; }
button.iv-chip { width: auto; margin: 0; padding: 4px 12px; font-size: 12.5px; font-weight: 400; border-radius: 999px; background: #eef4fd; color: #1a56c4; border: 1px solid #cfe0f5; box-shadow: none; }
button.iv-chip:hover { background: #dce9fb; color: #133f91; box-shadow: none; transform: none; filter: none; }
.iv-focus-badge { background: #fff4d6; color: #8a5a00; margin-right: 6px; }
.iv-muted { color: var(--muted); font-size: 12px; }

/* v2.8.2 運営者メニュー「一斉配信」のアイコン(封筒) */
:root { --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.top-nav nav a[href*="admin_mail"]::before { -webkit-mask-image: var(--i-mail); mask-image: var(--i-mail); }

/* v2.8.3 運営者メニュー「サーバー状況」のアイコン */
:root { --i-server: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='7' rx='2'/%3E%3Crect x='3' y='13' width='18' height='7' rx='2'/%3E%3Cpath d='M7 7.5h.01M7 16.5h.01'/%3E%3C/svg%3E"); }
.top-nav nav a[href*="admin_resources"]::before { -webkit-mask-image: var(--i-server); mask-image: var(--i-server); }
.res-donut-c{font-size:7px;font-weight:800;fill:var(--navy,#16243a);}
.res-donut-s{font-size:3.2px;fill:var(--muted,#5d7391);}

/* v2.8.5 進み具合(%)の表示 */
.prog-overlay { position: fixed; inset: 0; background: rgba(15, 30, 60, .45); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 16px; }
.prog-box { background: #fff; border-radius: 18px; padding: 22px 24px; width: min(480px, 100%); box-shadow: 0 20px 60px rgba(15, 30, 60, .3); text-align: center; }
.prog-title { font-weight: 700; font-size: 16px; color: var(--navy, #16243a); }
.prog-pct { font-size: 44px; font-weight: 800; color: #2b5fd0; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.prog-bar { height: 12px; border-radius: 999px; background: #e8eef7; overflow: hidden; }
.prog-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4f9cf0, #2b5fd0); transition: width .6s ease; }
.prog-msg { margin-top: 10px; font-size: 13.5px; min-height: 2.6em; overflow-wrap: anywhere; }
.prog-note { margin-top: 6px; font-size: 11.5px; color: var(--muted, #5d7391); }

/* v2.8.5: AIコスト・学習の進み具合 */
:root { --i-yen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 7l3.5 5 3.5-5M12 12v6M9 13h6M9 16h6'/%3E%3C/svg%3E"); }
.top-nav nav a[href*="admin_ai_cost"]::before { -webkit-mask-image: var(--i-yen); mask-image: var(--i-yen); }

/* v2.8.7: 会話の内容に、訪問者が添付した画像 */
.an-msg-img { display: inline-block; margin: 4px 0 6px; }
.an-msg-img img { display: block; max-width: 240px; max-height: 240px; border-radius: 10px; border: 1px solid var(--line, #dbe4ef); background: #fff; }

/* v2.8.9: 取り込んだ資料の全文表示 */
.imp-view-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.imp-view-tools input[type=search] { flex: 1 1 220px; margin: 0; }
.imp-view-tools button { width: auto; margin: 0; }

/* v2.9.1: 「AIに聞いてみる」の評価 */
.ai-fb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line, #dbe4ef); font-size: 13px; }
.ai-fb button { width: auto; margin: 0; }
.ai-fb form { width: 100%; }
.btn.btn-warn { background: #fff4f5; color: #a1202f; border-color: #f2a9b2; }
.btn.btn-warn:hover { background: #fde8ea; color: #8a1726; }
.an-fb { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 9px; margin-left: 4px; }
.an-fb.good { background: #e6f4ea; color: #1f6b35; }
.an-fb.bad { background: #fde8ea; color: #a1202f; }
