/* JARVIS — restrained HUD theme (no neon) */
:root {
  --bg: #050b16;
  --panel: rgba(56, 140, 190, .06);
  --panel-2: rgba(56, 140, 190, .11);
  --line: rgba(90, 170, 220, .18);
  --line-2: rgba(90, 170, 220, .40);
  --accent: #4fb6e6;        /* ジャービスの青。強調と未読に使う */
  --accent-2: #2f7fa8;
  --ink: #dbe9f3;
  --ink-2: #9db4c6;
  --muted: #5f7d93;
  --amber: #d9a441;
  --red: #d96a7a;
  --green: #6fbf9a;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
* { box-sizing: border-box; }
html, body, button, a, .card, .tab { touch-action: manipulation; }  /* ダブルタップ拡大を無効化 */
html { background: var(--bg); }
html, body { margin: 0; color: var(--ink); font: 15px/1.5 -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; -webkit-text-size-adjust: 100%; }
/* body を積層コンテキストにして、::before（グラデーション）と #stars（粒子）を body の背景より手前・内容より奥に置く。iOS Safari だと従来の書き方では隠れていた */
body { padding-bottom: calc(66px + var(--safe-b)); position: relative; z-index: 0; min-height: 100vh; background: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: radial-gradient(120% 70% at 50% -10%, #0d2540 0%, #071427 40%, var(--bg) 75%); }
#stars { position: fixed; inset: -40px; z-index: -1; pointer-events: none; opacity: .4; animation: drift 40s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-28px, -36px, 0) scale(1.04); } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-t)) 18px 12px; background: rgba(5,11,22,.85); border-bottom: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.brand { display: flex; flex-direction: column; line-height: 1.1; background: transparent; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
.brand:active .name { opacity: .6; }
.brand .name { font-family: var(--mono); font-weight: 600; letter-spacing: .22em; font-size: 21px; color: var(--accent); display: inline-block; }
body.boot .brand .name { animation: brandIn .9s var(--ease-out) both; }
.brand { flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; }
.brand .sub { display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: .26em; color: var(--muted); padding-left: 8px; border-left: 1px solid var(--line-2); line-height: 1; white-space: nowrap; }
body.boot .brand .sub { animation: subIn .6s var(--ease-out) .7s both; }
@keyframes subIn { from { opacity: 0; transform: translate3d(-6px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes brandIn { 0% { opacity: 0; letter-spacing: .8em; clip-path: inset(0 100% 0 0); transform: translate3d(-8px, 0, 0); } 40% { opacity: 1; } 100% { opacity: 1; letter-spacing: .22em; clip-path: inset(0 0 0 0); transform: none; } }
.top::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 40%; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; pointer-events: none; }
body.boot .top::after { animation: sweep 1.1s var(--ease-in-out) .1s 2 both; }
@keyframes sweep { 0% { transform: translate3d(-100%, 0, 0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate3d(250%, 0, 0); opacity: 0; } }
body.boot main { animation: mainIn .6s var(--ease-out) .25s both; }
@keyframes mainIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
.pill { display: inline-flex; align-items: center; gap: 8px; transition: color .2s ease, border-color .2s ease, background-color .2s ease; cursor: pointer; -webkit-tap-highlight-color: transparent; font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em; padding: 7px 11px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--accent); background: rgba(79,182,230,.06); white-space: nowrap; }
.pill.manual { border-color: var(--amber); color: var(--amber); background: rgba(217,164,65,.06); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; position: relative; }
.pill .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; }
.pill.manual .dot { animation: breathe 1.8s var(--ease-in-out) infinite; }
.pill.manual .dot::after { animation: ring 1.8s var(--ease-out) infinite; }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes ring { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.pill:active { background: rgba(79,182,230,.16); }

/* ---------- layout ---------- */
main { padding: 4px 18px 8px; }
h2 { font-family: var(--mono); font-size: 10px; letter-spacing: .32em; margin: 16px 2px 8px; color: var(--muted); font-weight: 500; text-transform: uppercase; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row h2 { margin: 8px 2px; }
.row .btn.small { margin: 8px 0; }
.status-row .btn.small { height: 30px; padding: 0 12px; font-size: 10.5px; border-radius: 3px; border-color: var(--line); background: rgba(56,140,190,.06); }
.row.right { justify-content: flex-end; }
.row.status-row { justify-content: space-between; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 8px 0; padding: 0 10px; height: 30px; border: 1px solid var(--line); border-radius: 3px; background: rgba(56,140,190,.06); transition: border-color .2s ease, background-color .2s ease; }
.search:focus-within { border-color: var(--line-2); background: rgba(79,182,230,.1); }
.search-icon { width: 11px; height: 11px; flex: 0 0 auto; border: 1.5px solid var(--muted); border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 5px; height: 1.5px; background: var(--muted); right: -4px; bottom: -2px; transform: rotate(45deg); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: 13px/1 -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; -webkit-appearance: none; appearance: none; }
.search input::placeholder { font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; color: var(--muted); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; }
.search-clear { background: transparent; border: 0; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 2px; -webkit-tap-highlight-color: transparent; }
.note { font-size: 12px; color: var(--muted); margin: 6px 2px; line-height: 1.6; }
.empty { text-align: center; color: var(--muted); padding: 70px 0; font-family: var(--mono); font-size: 11px; letter-spacing: .24em; }

/* ---------- card ---------- */
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 13px 15px; margin-bottom: 10px; transition: background-color .2s ease, border-color .2s ease, transform .12s var(--ease-out); }
.card[data-id]:active { transform: scale(.985); }
.card.enter { animation: cardIn .38s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes thumbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.985); } to { opacity: 1; transform: none; } }
.card.enter::before { animation: barIn .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms + .2s); transform-origin: top; }
@keyframes barIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.card::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 2px; background: var(--accent); border-radius: 1px; }
.card.handoff { border-color: rgba(217,164,65,.45); }
.card.handoff::before { background: var(--amber); }
.card.incident::before { background: var(--red); }
.card.posted::before { background: var(--green); }
.card.watch::before { background: #b58cff; }
.src.watch { color: #b58cff; } .src.watch::before { background: #b58cff; }
.meta { display: flex; align-items: center; gap: 8px; font-family: var(--mono); color: var(--muted); font-size: 10.5px; letter-spacing: .08em; }
.meta .time { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; }
.meta .media { color: var(--ink-2); letter-spacing: .04em; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .12em; color: #8fcbe8; }
.src::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.src.handoff { color: var(--amber); } .src.handoff::before { background: var(--amber); }
.src.incident { color: var(--red); } .src.incident::before { background: var(--red); }
.src.posted { color: var(--green); } .src.posted::before { background: var(--green); }
.title { font-weight: 600; margin: 7px 0 3px; word-break: break-word; color: var(--ink); line-height: 1.4; font-size: 15px; }
.text { white-space: pre-wrap; word-break: break-word; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.text.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.body { display: flex; gap: 12px; align-items: flex-start; }
.body-text { flex: 1; min-width: 0; }
.thumb { animation: thumbIn .5s var(--ease-out) both; width: 72px; height: 72px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line-2); margin-top: 7px; flex: 0 0 72px; background: rgba(255,255,255,.03); }
.images img { width: 100%; border-radius: 4px; border: 1px solid var(--line-2); margin-top: 10px; display: block; }

/* ---------- buttons ---------- */
.btn { display: block; width: 100%; padding: 13px; border-radius: 4px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em; font-weight: 600; margin-top: 10px; -webkit-tap-highlight-color: transparent;
  color: var(--accent); background: rgba(79,182,230,.05); border: 1px solid var(--line-2); }
.btn { transition: background-color .15s ease, transform .12s var(--ease-out); }
.btn:active { background: rgba(255,255,255,.06); transform: scale(.985); }
.btn.secondary { color: var(--ink-2); }
.btn.ghost { color: var(--muted); border-color: var(--line); font-weight: 500; }
.btn.warn { color: var(--amber); border-color: var(--amber); }
.btn.x { color: #000; background: #e8eef2; border-color: #e8eef2; }
.btn:disabled { opacity: .35; }
.btn.small { width: auto; margin: 0; padding: 4px 8px; font-size: 10px; letter-spacing: .2em; font-weight: 500; color: var(--muted); border-color: var(--line); border-radius: 3px; }

.input { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 15px; margin-top: 8px; background: rgba(0,0,0,.25); color: var(--ink); font-family: var(--mono); }
.input:focus { outline: none; border-color: var(--accent); }

/* ---------- chips / switches / status ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { transition: border-color .15s ease, color .15s ease, background-color .15s ease; padding: 8px 12px; border-radius: 3px; border: 1px solid var(--line); background: transparent; font-size: 13px; color: var(--ink-2); font-family: var(--mono); letter-spacing: .06em; }
.chip.on { border-color: var(--accent); color: var(--ink); background: rgba(143,195,214,.08); }
.chip.manual { border-color: var(--amber); color: var(--amber); }

.switch { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch input { width: 48px; height: 28px; appearance: none; background: #1f2a3a; border: 1px solid rgba(160,196,214,.25); border-radius: 999px; position: relative; transition: background-color .2s ease, border-color .2s ease; flex: 0 0 auto; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #8fa3b5; transition: transform .2s var(--ease-out), background-color .2s ease; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(20px); background: #06111c; }

.status { padding: 12px 14px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--accent); background: rgba(79,182,230,.06); font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; }
.status.manual { border-color: var(--amber); color: var(--amber); }
.back { color: var(--ink-2); font-family: var(--mono); font-size: 11px; letter-spacing: .2em; margin-bottom: 10px; display: inline-block; text-decoration: none; }

/* ---------- tabs (icon only) ---------- */
/* iOS Safari は fixed + backdrop-filter の組み合わせでスクロール中に位置がずれるため、ぼかしは使わず不透明寄りの背景にする */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: rgba(5,11,22,.97); border-top: 1px solid var(--line-2); padding-bottom: var(--safe-b); z-index: 5; transform: translateZ(0); }
.tab { transition: color .15s ease; flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 13px 0 11px; border: 0; background: transparent; color: var(--muted); -webkit-tap-highlight-color: transparent; }
.tab svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--accent); }
.badge { transition: transform .2s var(--ease-out); position: absolute; top: 7px; left: calc(50% + 7px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: #f0973a; color: #1a0f04; font-size: 9.5px; line-height: 15px; font-family: var(--mono); font-weight: 700; }

/* 記事カード: 左スライドで右に「𝕏 投稿」 */
.swipe { position: relative; overflow: hidden; margin: 0 -18px; padding: 0 18px; } /* 画面端でカードを切る */
.swipe-action { position: absolute; top: 0; bottom: 10px; right: 18px; width: 96px; display: flex; border-radius: 4px; overflow: hidden; opacity: 0; transition: opacity .15s ease; }
.swipe.open .swipe-action, .swipe.drag .swipe-action { opacity: 1; }
.swipe-x { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(79,182,230,.16); border: 1px solid var(--line-2); border-radius: 4px; color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .2em; -webkit-tap-highlight-color: transparent; }
.swipe-x .glyph { font-size: 22px; line-height: 1; letter-spacing: 0; }
.swipe-x:active { background: rgba(79,182,230,.3); }
.swipe-body { position: relative; z-index: 1; touch-action: pan-y; will-change: transform; }
/* 選手 */
.seg button.spec { flex: 1.4; letter-spacing: .06em; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 2px 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); line-height: 1.6; }
.foot .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.range { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-2); margin: 16px 2px 8px; font-variant-numeric: tabular-nums; }
.dates { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; }
.dates input { flex: 1; min-width: 0; background: rgba(56,140,190,.06); border: 1px solid var(--line); border-radius: 3px; color: var(--ink); padding: 8px 10px; font: 14px -apple-system, "Hiragino Sans", sans-serif; color-scheme: dark; -webkit-appearance: none; appearance: none; }
.dates span { color: var(--muted); }
.sheet-wrap { position: fixed; inset: 0; z-index: 8; background: rgba(2,5,10,.55); display: flex; align-items: flex-end; animation: fadeIn .18s ease both; }
.sheet-wrap.out { animation: fadeOut .2s ease both; pointer-events: none; }
.sheet { width: 100%; max-height: 70vh; overflow-y: auto; background: #0b1a2c; border-top: 1px solid var(--line-2); border-radius: 8px 8px 0 0; padding: 8px 18px calc(16px + var(--safe-b)); animation: sheetUp .26s var(--ease-out) both; }
.sheet-wrap.out .sheet { animation: sheetDown .2s ease both; }
.sheet h2 { margin: 10px 2px 8px; }
.picker-list { display: flex; flex-direction: column; }
.picker-item { text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; padding: 13px 4px; -webkit-tap-highlight-color: transparent; }
.picker-item.on { color: var(--accent); font-weight: 600; }
.picker-item.on::after { content: "✓"; float: right; font-family: var(--mono); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes sheetUp { from { transform: translate3d(0, 24px, 0); } to { transform: none; } }
@keyframes sheetDown { from { transform: none; } to { transform: translate3d(0, 24px, 0); } }
.seg { position: relative; display: flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin: 4px 0 8px; }
.seg button { position: relative; z-index: 1; flex: 1; padding: 9px 0; border: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .2em; -webkit-tap-highlight-color: transparent; transition: color .2s ease; }
.seg button.on { color: var(--ink); }
/* 選択中の背景は1枚の板を左右にスライドさせる（描き直しても前の位置から動く） */
.seg .ind { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: rgba(79,182,230,.12); border-radius: 2px; transform-origin: left center; will-change: transform; }
/* 表の切替: 行が下からわずかに浮き上がる（先頭ほど早く） */
.tbl tbody.rows-in tr { animation: rowIn .32s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes rowIn { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }
.tbl-card { padding: 8px 10px; overflow: hidden; }
.tbl { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.tbl th { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--muted); font-weight: 500; text-align: center; padding: 4px 0 8px; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; overflow: hidden; text-overflow: ellipsis; }
.tbl td { text-align: center; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.tbl td.nm { color: var(--ink); font-weight: 500; font-size: 12.5px; }
.tbl td.b { color: var(--ink); font-weight: 600; }
.tbl td.c { text-align: center; }
.tbl tr.dim td { color: var(--muted); }
.tbl tr.dim td.nm, .tbl tr.dim td.b { color: var(--muted); font-weight: 500; }
.cond { opacity: .55; }
.tbl th[data-k] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tbl th.sorted { color: var(--accent); }
.tbl th i { display: inline-block; width: 0; height: 0; margin-left: 3px; border-left: 3px solid transparent; border-right: 3px solid transparent; vertical-align: 1px; }
.tbl th i.desc { border-top: 4px solid currentColor; }
.tbl th i.asc { border-bottom: 4px solid currentColor; }
.tbl tr[data-url] { cursor: pointer; }
.tbl tr[data-url]:active td { background: rgba(79,182,230,.08); }
.cond { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.toast { position: fixed; left: 50%; bottom: calc(82px + var(--safe-b)); transform: translateX(-50%); background: #0b1a2c; border: 1px solid var(--line-2); color: var(--ink); padding: 10px 16px; border-radius: 4px; font-size: 13px; z-index: 9; max-width: 90%; }

@media (prefers-reduced-motion: reduce) {
  #stars { animation: none; }
  body.boot .brand .name { animation: brandFade .3s ease both; }
  body.boot .brand .sub { animation: brandFade .3s ease both; }
  @keyframes brandFade { from { opacity: 0; } to { opacity: 1; } }
  body.boot .top::after { animation: none; }
  body.boot main { animation: none; }
  .card.enter::before { animation: none; }
  .pill.manual .dot::after { animation: none; }
  .card.enter { animation: cardFade .2s ease both; animation-delay: 0s; }
  @keyframes cardFade { from { opacity: 0; } to { opacity: 1; } }
  .pill.manual .dot { animation: none; }
}

/* ---------- JARVIS agent (chat) ---------- */
.agent { display: flex; flex-direction: column; min-height: calc(100vh - 140px - var(--safe-b)); }
.agent .log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 6px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg.user { align-self: flex-end; background: rgba(79,182,230,.14); border: 1px solid var(--line-2); color: var(--ink); }
.msg.assistant { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); }
.msg.assistant.enter { animation: cardIn .3s var(--ease-out) both; }
.msg .actions { margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--accent); letter-spacing: .04em; }
.msg .actions div::before { content: "→ "; }
.agent .thinking { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); padding: 6px 2px; }
.agent .thinking::after { content: "…"; animation: dots 1.2s steps(3, end) infinite; }
@keyframes dots { 0% { content: ""; } 33% { content: "."; } 66% { content: ".."; } 100% { content: "..."; } }
.composer { position: sticky; bottom: calc(66px + var(--safe-b)); display: flex; gap: 8px; padding: 10px 0 6px; background: linear-gradient(180deg, rgba(5,11,22,0), rgba(5,11,22,.96) 30%); }
.composer textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 11px 13px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); color: var(--ink); font: 15px/1.4 -apple-system, "Hiragino Sans", sans-serif; }
.composer textarea:focus { outline: none; border-color: var(--accent); }
.composer textarea::placeholder { font-family: var(--mono); letter-spacing: .12em; font-size: 13px; color: var(--muted); }
.composer .send { width: 52px; border-radius: 6px; border: 1px solid var(--accent); background: rgba(79,182,230,.12); color: var(--accent); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.composer .send:disabled { opacity: .35; }
.watchbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.watchbar .w { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink-2); }
.watchbar .w.post { border-color: var(--amber); color: var(--amber); }
.watchbar .w button { background: transparent; border: 0; color: inherit; font-size: 13px; padding: 0; line-height: 1; opacity: .7; }
.agent .hint { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .12em; text-align: center; padding: 30px 0 10px; }

/* ---------- JARVIS 起動シーケンス（断片状ホログラム・フィルタなし） ---------- */
.boot-overlay { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(2,5,10,.94); animation: bootFade .35s ease 1.5s both; pointer-events: none; }
.boot-overlay svg { width: 100vw; height: 100vh; height: 100dvh; overflow: visible; }
.holo path { fill: none; stroke: #4fb6e6; stroke-linecap: round; }
.holo .dots circle { fill: #9fdcff; }
.holo .core { fill: #eaf8ff; }
.holo .spin { transform-box: fill-box; transform-origin: center; animation-name: spinCW; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform; }
.holo .shell { transform-box: view-box; }
.holo .glow { transform-box: fill-box; transform-origin: center; }
.boot-overlay .beam { animation: beamUp .5s var(--ease-out) both; will-change: transform; }
.boot-overlay .shell { opacity: 1; }
/* 周りから中央へ集まる: 大きく散った状態から回り込みながら縮んで所定の位置へ */
.boot-overlay .gather { transform-box: fill-box; transform-origin: center; animation: gatherIn .75s cubic-bezier(0.16, 1, 0.3, 1) both; will-change: transform, opacity; }
@keyframes gatherIn { 0% { opacity: 0; transform: scale(3.2) rotate(-140deg); } 30% { opacity: .9; } 100% { opacity: 1; transform: scale(1) rotate(0deg); } }
.boot-overlay .glow { animation: glowIn .6s var(--ease-out) .65s both, breatheGlow 2.4s ease-in-out 1.25s infinite; }
.boot-overlay .core { transform-box: fill-box; transform-origin: center; animation: coreIn .4s var(--ease-out) .85s both; }
@keyframes beamUp { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes shellIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spinCW { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes glowIn { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes breatheGlow { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
@keyframes coreIn { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bootFade { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .boot-overlay { display: none; } .tbl tbody.rows-in tr { animation: none; } }

/* ---------- エージェント画面の背景ホログラム（常時・控えめ） ---------- */
.agent-bg { position: fixed; left: 50%; top: 50%; width: min(96vw, 64vh); height: auto; aspect-ratio: 300 / 360; transform: translate(-50%, -56%); z-index: -1; opacity: .3; pointer-events: none; animation: bgIn 1.2s var(--ease-out) both; }
.agent-bg svg { width: 100%; height: 100%; overflow: visible; }
.agent-bg .spin { animation-duration: 60s !important; }
.agent-bg .glow { opacity: .8; }
@keyframes bgIn { from { opacity: 0; transform: translate(-50%, -56%) scale(.9); } to { opacity: .3; transform: translate(-50%, -56%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .holo .spin { animation: none; } .agent-bg { animation: none; } }
