/* =============================================================================
   集計レポート ページ専用スタイル (rp- プレフィックスで console.css と非干渉)
   ============================================================================= */

.rp-loading { text-align:center; color:#9CA3AF; padding:48px 16px; font-size:13px; }
.rp-empty { text-align:center; color:var(--ink-soft); padding:56px 20px; }
.rp-empty__t { font-size:15px; font-weight:800; color:var(--ink); margin-top:10px; }
.rp-empty__d { font-size:13px; margin-top:6px; }
.rp-empty-sm { text-align:center; color:var(--ink-soft); font-size:12px; padding:22px 12px; }

/* ---------- イントロ / ターゲット像 ---------- */
.rp-intro { display:flex; gap:12px; align-items:flex-start; background:var(--brand-soft);
    border-radius:12px; padding:14px 16px; margin-bottom:16px; }
.rp-intro__ic { font-size:22px; line-height:1; }
.rp-intro__t { font-size:13.5px; font-weight:800; }
.rp-intro__d { font-size:12px; color:var(--ink-mute); margin-top:3px; line-height:1.6; }
.rp-target-desc { display:flex; gap:10px; align-items:flex-start; background:var(--card);
    border:1px solid var(--border); border-left:3px solid var(--brand); border-radius:10px;
    padding:11px 14px; margin-bottom:18px; }
.rp-target-desc__label { font-size:11px; font-weight:800; color:var(--brand); white-space:nowrap; padding-top:1px; }
.rp-target-desc__text { font-size:12.5px; color:var(--ink-mute); line-height:1.7; white-space:pre-wrap; }

/* ---------- KPI ---------- */
.rp-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:22px; }
@media (max-width:760px) { .rp-kpis { grid-template-columns:repeat(2,1fr); } }
.rp-kpi { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:14px 16px; }
.rp-kpi__ic { font-size:18px; }
.rp-kpi__label { font-size:11px; color:var(--ink-mute); margin-top:6px; }
.rp-kpi__value { font-size:26px; font-weight:800; line-height:1.1; margin-top:2px; }
.rp-kpi__value small { font-size:12px; font-weight:600; color:var(--ink-soft); margin-left:2px; }
.rp-kpi__value--text { font-size:15px; line-height:1.4; }
.rp-kpi__foot { font-size:10.5px; color:var(--ink-soft); margin-top:4px; }

/* ---------- セクション見出し ---------- */
.rp-sec-title { font-size:15px; font-weight:800; margin:26px 0 12px;
    display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.rp-sec-title__sub { font-size:11px; font-weight:500; color:var(--ink-soft); }

/* ---------- カード / グリッド ---------- */
.rp-card { background:var(--card); border:1px solid var(--border); border-radius:12px;
    padding:16px 18px; margin-bottom:14px; }
.rp-card--brand { border-color:var(--brand); border-width:2px; }
.rp-card--warn { border-color:#F59E0B; border-width:2px; }
.rp-card--mt { margin-top:14px; }
.rp-card__head { margin-bottom:12px; }
.rp-card__title { font-size:13.5px; font-weight:800; }
.rp-card__sub { font-size:11px; color:var(--ink-soft); margin-top:3px; line-height:1.6; }
.rp-grid1 { display:grid; grid-template-columns:1fr; }
.rp-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.rp-grid4 { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
@media (max-width:760px) { .rp-grid2, .rp-grid4 { grid-template-columns:1fr; } }

/* ---------- 読み解き (ReadOut) ---------- */
.rp-readout { display:flex; gap:11px; background:#F0F9F7; border:1px solid #CFEAE5;
    border-radius:10px; padding:13px 15px; margin:6px 0 18px; }
.rp-readout__ic { font-size:18px; line-height:1.2; }
.rp-readout__title { font-size:13px; font-weight:800; color:#0B5B54; }
.rp-readout__text { font-size:12px; color:var(--ink-mute); line-height:1.75; margin-top:5px; }
.rp-readout__list { margin:7px 0 0; padding-left:18px; }
.rp-readout__list li { font-size:12px; color:var(--ink-mute); line-height:1.7; }
.rp-readout strong { color:var(--ink); font-weight:700; }

/* ---------- インサイト (エグゼクティブサマリー) ---------- */
.rp-insight-block { margin-bottom:18px; }
.rp-insight-block__t { font-size:12.5px; font-weight:800; color:var(--ink-mute); margin-bottom:9px; }
.rp-insights { display:flex; flex-direction:column; gap:10px; }
.rp-insight { display:flex; gap:0; background:var(--card); border:1px solid var(--border);
    border-radius:11px; overflow:hidden; }
.rp-insight__sev { width:78px; flex-shrink:0; display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:4px; padding:12px 6px; color:#fff; }
.rp-insight--danger  .rp-insight__sev { background:#DC2626; }
.rp-insight--warn    .rp-insight__sev { background:#EA580C; }
.rp-insight--info    .rp-insight__sev { background:#2563EB; }
.rp-insight--success .rp-insight__sev { background:#047857; }
.rp-insight__icon { font-size:20px; }
.rp-insight__sevlabel { font-size:10px; font-weight:700; }
.rp-insight__body { flex:1; min-width:0; padding:12px 15px; }
.rp-insight__tasklabel { font-size:10px; font-weight:700; color:var(--ink-soft); }
.rp-insight__task { font-size:13.5px; font-weight:800; margin:3px 0 6px; line-height:1.5; }
.rp-insight__because { font-size:11.5px; color:var(--ink-mute); line-height:1.75; }
.rp-insight__because-l { display:inline-block; font-size:10px; font-weight:700; color:var(--brand);
    background:var(--brand-soft); border-radius:4px; padding:1px 6px; margin-right:3px; }
.rp-insight__because strong { color:var(--ink); font-weight:700; }
.rp-insight__source { font-size:10px; color:var(--ink-soft); margin-top:6px; }

/* ---------- ランキング ---------- */
.rp-rank { display:flex; flex-direction:column; gap:7px; }
.rp-rank__row { display:flex; align-items:center; gap:9px; }
.rp-rank__num { width:18px; height:18px; flex-shrink:0; border-radius:5px; background:var(--bg);
    font-size:10px; font-weight:700; color:var(--ink-mute); display:flex; align-items:center; justify-content:center; }
.rp-rank__bar { flex:1; position:relative; height:24px; background:var(--bg);
    border-radius:6px; overflow:hidden; }
.rp-rank__fill { position:absolute; inset:0 auto 0 0; background:linear-gradient(90deg,var(--brand),#52B788); }
.rp-rank__lbl { position:absolute; left:9px; top:50%; transform:translateY(-50%);
    font-size:11.5px; font-weight:600; color:var(--ink); white-space:nowrap;
    max-width:calc(100% - 16px); overflow:hidden; text-overflow:ellipsis; }
.rp-rank__cnt { font-size:12px; font-weight:700; color:var(--ink-mute); width:42px; text-align:right; flex-shrink:0; }

/* ---------- 適合度バッジ ---------- */
.rp-fb { display:inline-flex; width:22px; height:22px; align-items:center; justify-content:center;
    border-radius:6px; font-size:11px; font-weight:800; color:#fff; }

/* ---------- マトリクス ---------- */
.rp-mx-wrap { overflow-x:auto; }
.rp-mx { width:100%; border-collapse:collapse; min-width:560px; }
.rp-mx th { font-size:10.5px; color:var(--ink-mute); font-weight:700; padding:6px 5px;
    text-align:center; border-bottom:1px solid var(--border); white-space:nowrap; }
.rp-mx td { padding:5px; text-align:center; border-bottom:1px solid #F3F4F6; }
.rp-mx tr:last-child td { border-bottom:none; }
.rp-mx__rowhead { text-align:left !important; font-size:12px; font-weight:700; white-space:nowrap; }
.rp-mx__rowsub { display:block; font-size:10px; font-weight:400; color:var(--ink-soft); margin-top:1px; }
.rp-mx__mhead { min-width:64px; }
.rp-mx__num { font-size:12.5px; font-weight:700; }
.rp-mx tfoot td { font-size:11.5px; font-weight:700; color:var(--ink-mute); border-top:1px solid var(--border); }
.rp-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; vertical-align:1px; }

/* ヒートセル */
.rp-heat { display:inline-flex; min-width:30px; height:24px; padding:0 6px; border-radius:6px;
    align-items:center; justify-content:center; font-size:11.5px; font-weight:700; }
.rp-heat--0 { background:#F3F4F6; color:#9CA3AF; }
.rp-heat--1 { background:#DCFCE7; color:#166534; }
.rp-heat--2 { background:#A7F3D0; color:#065F46; }
.rp-heat--3 { background:#52B788; color:#fff; }
.rp-heat--4 { background:#2D8A5E; color:#fff; }
.rp-heat--5 { background:#1B5E3F; color:#fff; }

/* 訴求×動機セル */
.rp-mc { display:inline-flex; min-width:32px; height:26px; padding:0 8px; border-radius:6px;
    align-items:center; justify-content:center; font-size:12px; font-weight:700; }
.rp-mc--zero { color:#D1D5DB; }
.rp-mc--ok  { background:rgba(16,185,129,.18); color:#047857; }
.rp-mc--bad { background:rgba(239,68,68,.18); color:#B91C1C; }

/* ---------- ギャップカード (ターゲット vs 実態) ---------- */
.rp-gap { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:14px 16px; }
.rp-gap__head { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; }
.rp-gap__title { font-size:13px; font-weight:800; }
.rp-gap__count { font-size:11px; font-weight:700; color:var(--ink-soft); }
.rp-gap__tgt { display:flex; flex-wrap:wrap; gap:5px; align-items:center; margin-bottom:11px;
    padding-bottom:10px; border-bottom:1px dashed var(--border); }
.rp-gap__tgt-l { font-size:10.5px; font-weight:700; color:var(--ink-soft); margin-right:3px; }
.rp-gap__tgt-chip { font-size:10.5px; font-weight:700; color:var(--brand);
    background:var(--brand-soft); border-radius:999px; padding:2px 9px; }
.rp-gap__tgt-empty { font-size:10.5px; color:var(--ink-soft); }
.rp-gap__bars { display:flex; flex-direction:column; gap:6px; }
.rp-gap__row { display:grid; grid-template-columns:78px 1fr auto; align-items:center; gap:8px; }
.rp-gap__row.is-target .rp-gap__lbl { color:var(--brand); font-weight:700; }
.rp-gap__lbl { font-size:11px; color:var(--ink-mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rp-gap__track { height:14px; background:var(--bg); border-radius:5px; overflow:hidden; }
.rp-gap__fill { height:100%; border-radius:5px; min-width:2px; }
.rp-gap__fill--target { background:var(--brand); }
.rp-gap__fill--over { background:#EA580C; }
.rp-gap__fill--mute { background:#CBD5E1; }
.rp-gap__meta { font-size:10.5px; color:var(--ink-soft); white-space:nowrap; text-align:right; }
.rp-gap__status { display:inline-block; font-size:9.5px; font-weight:700; border-radius:4px; padding:1px 5px; margin-left:3px; }
.rp-gap__status--ok   { background:#D1FAE5; color:#047857; }
.rp-gap__status--warn { background:#FEF3C7; color:#B45309; }
.rp-gap__status--over { background:#FFEDD5; color:#C2410C; }
.rp-gap__callout { font-size:11px; line-height:1.6; border-radius:8px; padding:8px 10px; margin-top:11px; }
.rp-gap__callout strong { font-weight:700; }
.rp-gap__callout--ok      { background:#F0FDF4; color:#047857; }
.rp-gap__callout--warn    { background:#FFF7ED; color:#C2410C; }
.rp-gap__callout--neutral { background:var(--bg); color:var(--ink-soft); }

/* ---------- ファネル ---------- */
.rp-funnel { display:flex; flex-direction:column; gap:8px; }
.rp-funnel__row { display:grid; grid-template-columns:64px 1fr 42px; align-items:center; gap:9px; }
.rp-funnel__lbl { font-size:11.5px; font-weight:700; color:var(--ink-mute); }
.rp-funnel__track { height:26px; background:var(--bg); border-radius:6px; overflow:hidden; }
.rp-funnel__fill { height:100%; background:linear-gradient(90deg,var(--brand),#52B788);
    border-radius:6px; display:flex; align-items:center; padding:0 9px; color:#fff;
    font-size:11.5px; font-weight:700; }
.rp-funnel__pct { font-size:11.5px; font-weight:700; color:var(--ink-soft); text-align:right; }

/* ---------- アクションプラン ---------- */
.rp-action { background:linear-gradient(135deg,#FFFBEB,#FEF3C7); border:1px solid #FDE68A;
    border-radius:14px; padding:18px 20px; margin:24px 0 8px; }
.rp-action__head { margin-bottom:13px; }
.rp-action__h-title { font-size:15px; font-weight:800; }
.rp-action__h-sub { font-size:11px; color:#92704A; margin-top:2px; }
.rp-action__list { display:flex; flex-direction:column; gap:9px; }
.rp-action__item { display:flex; gap:11px; background:rgba(255,255,255,.75);
    border:1px solid #FDE68A; border-radius:10px; padding:12px 14px; }
.rp-action__num { width:24px; height:24px; flex-shrink:0; border-radius:50%; background:#D97706;
    color:#fff; font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.rp-action__title { font-size:13px; font-weight:800; }
.rp-action__text { font-size:11.5px; color:var(--ink-mute); line-height:1.75; margin-top:3px; }
.rp-action__text strong { color:var(--ink); font-weight:700; }

/* ---------- ターゲット定義モーダル ---------- */
.rp-overlay { position:fixed; inset:0; background:rgba(17,24,39,.4); z-index:60;
    opacity:0; pointer-events:none; transition:opacity .2s; }
.rp-overlay.is-open { opacity:1; pointer-events:auto; }
.rp-modal { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%) scale(.97);
    width:560px; max-width:94vw; max-height:88vh; background:var(--card); border-radius:14px;
    z-index:61; display:flex; flex-direction:column; box-shadow:0 24px 60px rgba(0,0,0,.28);
    opacity:0; pointer-events:none; transition:opacity .18s ease, transform .18s ease; }
.rp-modal.is-open { opacity:1; pointer-events:auto; transform:translate(-50%,-50%) scale(1); }
.rp-modal__head { display:flex; align-items:center; justify-content:space-between;
    padding:15px 20px; border-bottom:1px solid var(--border); flex-shrink:0; }
.rp-modal__title { font-size:15px; font-weight:800; margin:0; }
.rp-modal__close { width:30px; height:30px; border:none; background:var(--bg); border-radius:8px;
    cursor:pointer; font-size:14px; color:var(--ink-mute); }
.rp-modal__close:hover { background:var(--border); color:var(--ink); }
.rp-modal__body { flex:1; overflow-y:auto; padding:16px 20px; }
.rp-modal__foot { display:flex; align-items:center; gap:8px; padding:12px 20px;
    border-top:1px solid var(--border); flex-shrink:0; }

.rp-tc { padding:13px 0; border-bottom:1px dashed var(--border); }
.rp-tc:last-child { border-bottom:none; }
.rp-tc__title { font-size:12.5px; font-weight:800; }
.rp-tc__sub { font-size:11px; color:var(--ink-soft); margin:3px 0 9px; line-height:1.6; }
.rp-buckets { display:flex; flex-wrap:wrap; gap:7px; }
.rp-bucket { border:1px solid var(--border); background:var(--card); cursor:pointer;
    font-size:12px; font-family:inherit; color:var(--ink-mute); padding:6px 12px; border-radius:999px;
    transition:border-color .12s, background .12s, color .12s; }
.rp-bucket:hover { border-color:var(--brand); }
.rp-bucket.is-active { background:var(--brand); border-color:var(--brand); color:#fff; font-weight:700; }

.rp-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; min-height:22px; }
.rp-tags__empty { font-size:11.5px; color:var(--ink-soft); }
.rp-chip { display:inline-flex; align-items:center; gap:5px; background:var(--brand-soft);
    color:var(--brand); font-size:11.5px; font-weight:600; padding:3px 5px 3px 10px; border-radius:999px; }
.rp-chip__x { border:none; background:none; cursor:pointer; color:inherit; opacity:.6; font-size:10px; padding:2px; }
.rp-chip__x:hover { opacity:1; }
.rp-input { width:100%; padding:8px 10px; border:1px solid var(--border); border-radius:8px;
    font-size:13px; font-family:inherit; background:var(--card); outline:none; }
.rp-input:focus { border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft); }
.rp-textarea { resize:vertical; min-height:84px; line-height:1.7; }
.rp-suggests { display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }
.rp-suggest { border:1px dashed var(--border); background:var(--card); cursor:pointer;
    font-size:11px; color:var(--ink-soft); font-family:inherit; padding:3px 9px; border-radius:999px; }
.rp-suggest:hover { border-color:var(--brand); color:var(--brand); background:var(--brand-soft); }

/* 業界ベンチマーク比較 (Step 2) */
.rp-bm { display:grid; grid-template-columns:repeat(auto-fit,minmax(232px,1fr)); gap:12px; }
.rp-bm-card { border:1px solid var(--border); border-radius:12px; background:var(--card); padding:14px 16px; }
.rp-bm__head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.rp-bm__label { font-size:12.5px; font-weight:800; color:var(--ink); }
.rp-bm__value { font-size:24px; font-weight:800; color:var(--ink); line-height:1; white-space:nowrap; }
.rp-bm__value small { font-size:12px; font-weight:700; color:var(--ink-soft); margin-left:1px; }
.rp-bm__value--na { color:var(--ink-soft); font-size:20px; }
.rp-bm__hint { font-size:10.5px; color:var(--ink-soft); margin:4px 0 14px; line-height:1.6; }
.rp-bm__track { position:relative; padding:4px 0; }
.rp-bm__bar { position:relative; height:12px; border-radius:6px; overflow:hidden; background:var(--border); }
.rp-bm__zone { position:absolute; top:0; height:100%; }
.rp-bm__zone--low   { background:#FECACA; }
.rp-bm__zone--below { background:#FDE68A; }
.rp-bm__zone--above { background:#BBF7D0; }
.rp-bm__zone--top   { background:#86EFAC; }
.rp-bm__pin { position:absolute; top:0; bottom:0; width:3px; border-radius:2px;
    background:#111827; transform:translateX(-50%); }
.rp-bm__scale { font-size:10.5px; color:var(--ink-soft); margin:9px 0 7px; }
.rp-bm__verdict { font-size:12px; font-weight:800; }
.rp-bm__verdict--na { color:var(--ink-soft); font-weight:600; font-size:11.5px; }

/* レポート総括 (Step 3) */
.rp-narrative { border:1px solid var(--border); border-left:3px solid var(--brand);
    border-radius:10px; background:var(--card); padding:4px 18px; }
.rp-narrative p { font-size:13px; line-height:1.95; color:var(--ink-mute); margin:13px 0; }
.rp-narrative p:first-child { font-weight:600; color:var(--ink); }

/* ---------- スマホ (≤640px): ターゲット定義モーダルをフルスクリーン化 ---------- */
@media (max-width: 640px) {
    .rp-modal { top:0; left:0; width:100vw; max-width:100vw;
        height:100vh; max-height:100vh; border-radius:0;
        transform:translate(0,0); transition:opacity .18s ease; }
    .rp-modal.is-open { transform:translate(0,0); }
    .rp-modal__head, .rp-modal__foot { padding:12px 14px; }
    .rp-modal__body { padding:14px; }
    .rp-modal__title { font-size:14px; }
}

/* =============================================================================
   ヘルプアシスタント "ガラ" — applicants と共有の help widget (page-scoped 配置)
   ============================================================================= */

.help-pin {
    display:inline-flex; align-items:center; justify-content:center;
    width:16px; height:16px; border-radius:50%;
    background:var(--brand-soft); color:var(--brand);
    font-size:10px; font-weight:800; font-family:'Inter',monospace;
    cursor:pointer; margin:0 0 0 6px; vertical-align:middle;
    transition:transform .18s, background .18s, color .18s;
    border:none; flex-shrink:0; line-height:1;
}
.help-pin:hover { background:var(--brand); color:#fff; transform:scale(1.2); }

.gala-fab {
    position:fixed; right:24px; bottom:24px; z-index:70;
    width:56px; height:56px; border-radius:50%;
    background:var(--brand); color:#fff;
    font-size:24px; font-weight:800; font-family:'Inter',monospace;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 8px 22px rgba(45,106,79,.34);
    cursor:pointer; border:3px solid #fff;
    transition:transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, opacity .25s;
}
.gala-fab:hover { transform:translateY(-3px) scale(1.08); box-shadow:0 14px 30px rgba(45,106,79,.42); }
.gala-fab.is-hidden { opacity:0; transform:scale(0); pointer-events:none; }
.gala-fab__pulse {
    position:absolute; inset:-4px; border-radius:50%;
    background:var(--brand);
    opacity:.35; animation:galaPulse 2.4s ease-out infinite;
    pointer-events:none; z-index:-1;
}
@keyframes galaPulse {
    0%   { transform:scale(1);   opacity:.4; }
    100% { transform:scale(1.7); opacity:0;  }
}

.gala {
    position:fixed; right:24px; bottom:24px; z-index:90;
    display:flex; align-items:flex-end; gap:12px;
    transform:translateY(calc(100% + 80px));
    opacity:0; pointer-events:none;
    transition:transform .55s cubic-bezier(.34,1.56,.64,1), opacity .3s;
}
.gala.is-shown { transform:translateY(0); opacity:1; pointer-events:auto; }

.gala__char {
    flex-shrink:0; width:84px; height:84px;
    filter:drop-shadow(0 6px 12px rgba(0,0,0,.16));
    animation:galaBob 2.8s ease-in-out infinite;
    position:relative; z-index:1;
}
@keyframes galaBob {
    0%, 100% { transform:translateY(0)    rotate(-3deg); }
    50%      { transform:translateY(-5px) rotate(3deg); }
}

.gala__bubble {
    position:relative; background:#fff;
    border-radius:18px; padding:18px 22px;
    width:360px; max-width:calc(100vw - 140px);
    box-shadow:0 24px 60px rgba(0,0,0,.22);
    font-size:13px; line-height:1.75; color:var(--ink);
    margin-bottom:8px;
}
.gala__bubble::after {
    content:''; position:absolute;
    bottom:24px; right:-8px;
    width:16px; height:16px; background:#fff;
    transform:rotate(45deg);
    box-shadow:4px -4px 8px -4px rgba(0,0,0,.06);
}

.gala__close {
    position:absolute; top:12px; right:14px;
    width:26px; height:26px; border-radius:50%;
    background:var(--bg); color:var(--ink-mute);
    display:inline-flex; align-items:center; justify-content:center;
    font-size:12px; border:none; cursor:pointer;
    transition:all .18s;
}
.gala__close:hover { background:#FEE2E2; color:#B91C1C; transform:scale(1.1); }

.gala__title {
    font-size:14px; font-weight:700;
    color:var(--brand-dark);
    margin:0 36px 8px 0;
    display:flex; align-items:center; gap:6px;
}
.gala__body { color:var(--ink); animation:galaFade .32s ease; }
.gala__body strong { color:var(--brand-dark); font-weight:700; }
.gala__body code {
    background:var(--bg); padding:1px 6px; border-radius:4px;
    font-family:'Inter',monospace; font-size:12px; color:var(--brand);
}
@keyframes galaFade {
    from { opacity:0; transform:translateY(4px); }
    to   { opacity:1; transform:translateY(0); }
}

.gala__back {
    display:inline-flex; align-items:center; gap:4px;
    padding:4px 10px; border-radius:6px; margin-top:12px;
    background:var(--bg); color:var(--ink-mute);
    font-size:11px; font-weight:600; border:none;
    cursor:pointer; font-family:inherit;
    transition:all .18s;
}
.gala__back:hover { background:var(--brand-soft); color:var(--brand); }

.gala__search-input {
    width:100%; padding:10px 14px;
    border-radius:10px; background:var(--bg);
    font-size:13px; margin-bottom:12px;
    border:2px solid transparent; outline:none;
    transition:all .18s; font-family:inherit;
}
.gala__search-input:focus {
    background:#fff; border-color:var(--brand);
    box-shadow:0 0 0 3px var(--brand-soft);
}

.gala__suggest {
    display:flex; flex-direction:column; gap:4px;
    max-height:280px; overflow-y:auto;
    margin:0 -4px; padding:0 4px;
}
.gala__suggest-item {
    display:flex; justify-content:space-between; align-items:center; gap:8px;
    padding:10px 12px; border-radius:8px;
    font-size:12px; font-weight:500;
    background:var(--bg); color:var(--ink);
    text-align:left; transition:all .15s;
    cursor:pointer; width:100%; border:none; font-family:inherit;
}
.gala__suggest-item:hover {
    background:var(--brand-soft); color:var(--brand-dark);
}
.gala__suggest-item__lbl { flex:1; min-width:0; }
.gala__suggest-item__arrow {
    color:var(--ink-soft); font-size:11px;
    transition:transform .15s;
}
.gala__suggest-item:hover .gala__suggest-item__arrow {
    color:var(--brand); transform:translateX(2px);
}
.gala__suggest-empty {
    padding:16px 8px; text-align:center;
    font-size:11px; color:var(--ink-soft);
}

@media (max-width: 640px) {
    .gala-fab { right:16px; bottom:16px; }
    .gala { right:16px; bottom:16px; flex-direction:column-reverse; align-items:flex-end; }
    .gala__bubble::after { display:none; }
    .gala__char { width:64px; height:64px; }
}
