:root{color-scheme:light;--bg: #f0f9ff;--card: #fbfdff;--border: rgba(0, 0, 0, .08);--shadow: 0 8px 32px rgba(33, 150, 229, .16);--blue: #1f55c7}html,body{height:100%}body{margin:0;font-family:Yu Gothic,YuGothic,游ゴシック,Meiryo,Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,Helvetica Neue,Arial,sans-serif;background:var(--bg)}.page{max-width:1440px;margin:0 auto;padding:20px 18px 40px}.navLink{color:#fffffff2;text-decoration:underline;text-underline-offset:2px}.navLink:hover{opacity:.9}button.navLinkButton{font:inherit;background:none;border:0;padding:0;cursor:pointer;color:#fffffff2;text-decoration:underline;text-underline-offset:2px}button.navLinkButton:hover{opacity:.9}button.navLinkButton:disabled{opacity:.55;cursor:not-allowed}.header{display:flex;flex-direction:column;gap:6px;padding:18px;border-radius:18px;background:linear-gradient(135deg,#2b6de5,#1f55c7);color:#fff;box-shadow:0 10px 34px #1f55c740}.headerRow{display:flex;align-items:center;justify-content:space-between;gap:12px}.title{font-size:20px;font-weight:800;letter-spacing:.02em}.subtitle{font-size:13px;opacity:.95}.main{display:grid;grid-template-columns:1fr;gap:14px;margin-top:14px}.authMain{grid-template-columns:1fr 1fr;align-items:stretch}@media(max-width:980px){.main,.authMain{grid-template-columns:1fr}}.authHero{border-radius:18px;background:linear-gradient(135deg,#2b6de5,#1f55c7);color:#fff;box-shadow:0 10px 34px #1f55c740;padding:18px;min-height:420px}.authBrand{display:inline-block;font-weight:900;padding:10px 14px;border-radius:12px;background:#ffffff1f;border:1px solid rgba(255,255,255,.22)}.authNote{margin-top:12px;font-weight:800;opacity:.96}.authBullets{margin-top:16px;display:grid;gap:10px}.authBullet{padding:10px 12px;border-radius:12px;background:#ffffff1a;border:1px solid rgba(255,255,255,.18);font-weight:800}.authCard{background:var(--card);border:1px solid rgba(255,255,255,.95);border-radius:18px;box-shadow:var(--shadow);padding:16px}.authTopTabs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.seg{background:#1f55c71a;color:#0f172ae6;border:1px solid rgba(31,85,199,.18);border-radius:12px;padding:10px 12px;font-weight:900;cursor:pointer}.seg.active{background:#1f55c7;color:#fff}.authModeRow{display:flex;gap:10px;margin-top:12px}.chip{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;border:1px solid rgba(0,0,0,.1);background:#00000008;font-weight:900;cursor:pointer;-webkit-user-select:none;user-select:none}.chip input{margin:0}.chip.active{background:#1f55c724;border-color:#1f55c740}.authInput{width:100%;box-sizing:border-box;border-radius:12px;border:1px solid var(--border);padding:10px;font-size:14px;line-height:1.45}.bubble{background:var(--card);border:1px solid rgba(255,255,255,.95);border-radius:20px;box-shadow:var(--shadow);padding:18px}.bubble.user,.bubble.bot{border-left:0}.label{font-weight:800;font-size:22px;margin-bottom:8px;color:#0f172ae6}textarea{width:100%;box-sizing:border-box;resize:vertical;border-radius:12px;border:1px solid var(--border);padding:10px;font-size:14px;line-height:1.45}.actions{margin-top:10px;display:flex;justify-content:flex-end}button{border:0;border-radius:12px;padding:10px 14px;background:#1f55c7;color:#fff;font-weight:800;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.filePickBtn{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:10px 14px;background:#f59e0b;color:#fffffffa;font-weight:900;cursor:pointer;border:0;-webkit-user-select:none;user-select:none}.filePickBtn:hover{filter:brightness(.97)}.filePickBtn.disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.adminRowSpacer{flex:1}.archiveMiniBtn{padding:6px 10px;border-radius:999px;background:#dc2626;color:#fffffffa;font-weight:900;font-size:12px}.archiveMiniBtn:hover{filter:brightness(.97)}.archiveMiniBtn:disabled{opacity:.5}.reindexMiniBtn{padding:6px 10px;border-radius:999px;background:#1f55c7eb;color:#fffffffa;font-weight:900;font-size:12px;border:0;cursor:pointer}.reindexMiniBtn:hover{filter:brightness(1.05)}.reindexMiniBtn:disabled{opacity:.5;cursor:not-allowed}.indexFailureHint{margin-bottom:12px;padding:12px 14px;border-radius:14px;background:#fee2e2a6;border:1px solid rgba(239,68,68,.35)}.indexFailureHintTitle{font-weight:900;font-size:13px;color:#7f1d1df2;margin-bottom:8px}.indexFailureHintPre{margin:0 0 8px;max-height:120px;overflow:auto;font-size:12px}.indexFailureHintFoot{font-size:12px;line-height:1.45}.backMiniBtn{padding:6px 10px;border-radius:999px;background:#1f55c724;color:#0f172ad9;font-weight:900;font-size:12px;border:1px solid rgba(31,85,199,.25)}.backMiniBtn:hover{filter:brightness(.98)}.backMiniBtn:disabled{opacity:.5}.chatShell{background:#ffffff8c;border:1px solid rgba(255,255,255,.9);border-radius:18px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;min-height:560px}.messageList{flex:1;overflow:auto;padding:16px 14px 12px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#f0f9ffbf,#f0f9ff40)}.emptyState{background:#ffffffd9;border:1px dashed rgba(0,0,0,.12);border-radius:16px;padding:14px}.emptyTitle{font-weight:900;margin-bottom:6px;color:#0f172ae6}.msgRow{display:flex;width:100%}.msgRow.left{justify-content:flex-start}.msgRow.right{justify-content:flex-end}.msgBubble{max-width:min(660px,92%);border-radius:18px;padding:10px 12px;border:1px solid rgba(0,0,0,.08);box-shadow:0 10px 24px #0f172a14}.msgBubble.user{background:#1f55c7;color:#fffffffa;border-bottom-right-radius:6px}.msgBubble.bot{background:#ffffffeb;color:#0f172aeb;border-bottom-left-radius:6px}.msgText{margin:0;white-space:pre-wrap;word-break:break-word;font-family:inherit;font-size:14px;line-height:1.55}.msgMeta{max-width:min(660px,92%);font-size:12px;color:#0f172ab3}.fbRow{display:inline-flex;gap:8px;align-items:center}.fbRow button{height:28px;padding:0 10px;border-radius:999px;background:#0000000a;color:#0f172ae6}.fbForm{display:grid;grid-template-columns:160px 1fr auto auto;gap:8px;align-items:center}.fbForm select,.fbForm input{border-radius:10px;border:1px solid rgba(0,0,0,.12);padding:8px;font-size:12px}.fbForm button{height:32px;padding:0 12px}.composer{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px;background:#ffffffeb;border-top:1px solid rgba(0,0,0,.06)}.composer textarea{resize:none;min-height:44px;max-height:140px}.composer button{padding:10px 16px;height:44px;align-self:end}.typing{display:inline-flex;align-items:center;gap:6px;padding:6px 4px}.typing .dot{width:7px;height:7px;border-radius:999px;background:#0f172a59;animation:typingDot 1.2s infinite ease-in-out}.typing .dot:nth-child(2){animation-delay:.15s}.typing .dot:nth-child(3){animation-delay:.3s}@keyframes typingDot{0%,80%,to{transform:translateY(0);opacity:.35}40%{transform:translateY(-4px);opacity:.9}}.answer{margin:0;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:13px;line-height:1.5}.sidebar .panel{background:var(--card);border:1px solid rgba(255,255,255,.95);border-radius:18px;box-shadow:var(--shadow);padding:14px}.panelTitle{font-weight:900;margin-bottom:10px}.muted{color:#0f172a8c;font-size:12px}.sources{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:10px}.sourceItem{display:flex;flex-direction:column;gap:6px}.sourceHead{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.preview{margin:0;padding:10px;border-radius:12px;background:#00000008;border:1px solid rgba(0,0,0,.06);white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.45;max-height:240px;overflow:auto}.error{background:#fff1f2;border:1px solid rgba(225,29,72,.25);border-radius:18px;padding:14px}.adminMain{margin-top:14px}.adminLayoutTop{display:grid;grid-template-columns:1fr 420px;gap:14px;margin-top:14px;align-items:start}.adminLayoutTop.debugOff{grid-template-columns:1fr}@media(max-width:1100px){.adminLayoutTop{grid-template-columns:1fr}.adminSide{display:none}}.adminContentTop{min-width:0}.adminTabsBar{display:flex;gap:10px;padding:12px;border-radius:18px;background:#0f172aeb;border:1px solid rgba(255,255,255,.08);box-shadow:0 10px 26px #0f172a2e;margin-bottom:10px}.adminTab{flex:1;min-width:0;border:1px solid rgba(255,255,255,.12);background:#ffffff14;color:#ffffffeb;border-radius:999px;padding:9px 14px;font-weight:900;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.adminTab.active{background:#2b6de5f2;color:#fff;border-color:#ffffff2e}.adminSide .panel{background:var(--card);border:1px solid rgba(255,255,255,.95);border-radius:18px;box-shadow:var(--shadow);padding:14px;position:sticky;top:14px}.adminRow{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.logSelect{width:min(520px,100%);border-radius:12px;border:1px solid rgba(0,0,0,.12);padding:9px 10px;background:#ffffffe6;font-weight:900}.categoryDonutSection{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;padding:8px 0 16px}.categoryDonutRow{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:28px 40px;max-width:720px}.categoryDonutSvg{flex-shrink:0}.categoryLegend{list-style:none;margin:0;padding:0;min-width:min(100%,260px)}.categoryLegendItem{display:flex;align-items:center;gap:10px;padding:6px 0;font-size:14px;font-weight:800;color:#0f172ae6}.categoryLegendSwatch{display:inline-block;width:14px;height:14px;border-radius:4px;flex-shrink:0;box-shadow:0 0 0 1px #00000014}.categoryLegendSwatchSm{width:10px;height:10px;border-radius:3px}.categoryLegendName{flex:1;min-width:0}.categoryLegendCount{font-variant-numeric:tabular-nums;color:#0f172a8c;font-weight:900;font-size:13px}.categoryFilterBlock{margin:10px 0 14px}.categoryFilterLabel{font-weight:900;margin-bottom:8px}.categoryFilterChips{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.categoryFilterChip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:900;border:1px solid rgba(0,0,0,.12);background:#ffffffeb;color:#0f172ae0;cursor:pointer;transition:box-shadow .12s ease,transform .12s ease}.categoryFilterChip:hover:not(:disabled){transform:translateY(-1px)}.categoryFilterChip:disabled{opacity:.55;cursor:not-allowed}.categoryFilterChipActive{font-weight:900}.categoryFilterChip.categoryFilterChipActive{box-shadow:0 0 0 2px #1f55c747;border-color:#1f55c759}.logList{display:grid;gap:12px}.logCard{background:#ffffffeb;border:1px solid rgba(0,0,0,.06);border-radius:18px;padding:16px;box-shadow:0 10px 26px #0f172a0f}.statCard{background:#e0f2febf;border:1px solid rgba(0,0,0,.06);border-radius:18px;padding:18px;min-height:86px;box-shadow:0 10px 26px #0f172a0f}.statCardLabel{color:#0f172a8c;font-size:13px;font-weight:900}.statCardValue{margin-top:8px;font-weight:900;font-size:22px;color:#0f172aeb}.logMeta{display:flex;align-items:center;justify-content:space-between;gap:10px}.logDate{font-size:12px;color:#0f172a8c;font-weight:900}.logChip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 10px 4px 6px;font-weight:900;font-size:12px;white-space:nowrap}.logQuestion{margin-top:8px;font-weight:900;color:#0f172aeb}.logMore{margin-top:8px;padding:0;background:transparent;color:#1f55c7f2;border:0;font-weight:900}.logMore:hover{text-decoration:underline;text-underline-offset:3px}.logDetail{margin-top:10px}.adminTable{width:100%;border-collapse:collapse;font-size:13px}.adminTable th,.adminTable td{padding:8px 6px;border-bottom:1px solid rgba(0,0,0,.06)}.adminTable th{text-align:left;font-weight:900}.clickRow{cursor:pointer}.clickRow:hover td{background:#2b6de50f}.indexRebuildBanner{margin-bottom:14px;padding:14px 16px;border-radius:16px;background:#e0f2fed9;border:1px solid rgba(31,85,199,.2);box-shadow:0 8px 22px #0f172a0f}.indexRebuildBannerTitle{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.indexRebuildBarTrack{margin-top:10px;height:8px;border-radius:999px;background:#0f172a14;overflow:hidden}.indexRebuildBarFill{height:100%;border-radius:999px;background:linear-gradient(90deg,#2b6de5,#1f55c7)}.indexRebuildBarDeterminate{transition:width .35s ease}.indexRebuildBarIdle{width:100%;max-width:100%;opacity:.22}.adminFileRegTh,.adminFileReg{text-align:center;width:88px}.adminFileRegIcon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;font-size:15px;font-weight:900;line-height:1;-webkit-user-select:none;user-select:none}.adminFileRegIconOk{color:#fff;background:#22c55e;box-shadow:0 1px 4px #22c55e59}.adminFileRegIconWait{color:#64748b;background:#e2e8f0}.adminFileRegIconBad{color:#fff;background:#ef4444;box-shadow:0 1px 4px #ef444459}
