/* inDB 저장소 탐색기 전용 스타일. index/app과 분리해 js/inDB에서 함께 관리한다. */
/* inDB 저장소 탐색기 */
        .indb-status-backdrop {
            padding: 18px;
            background: rgba(2, 6, 23, 0.68);
            backdrop-filter: blur(5px);
        }

        .indb-ai-image-preview img { width: 100%; max-height: 520px; object-fit: contain; background: #07101f; }
        .indb-ai-filter { display: flex; gap: 7px; margin: 12px 0; }
        .indb-ai-filter button { padding: 7px 10px; border: 1px solid #64748b; border-radius: 7px; background: #ffffff; color: #334155; font-size: 12px; font-weight: 700; }
        .dark .indb-ai-filter button { background: #1e293b; color: #cbd5e1; }
        .indb-ai-filter button.is-active { border-color: #7c3aed; background: #7c3aed; color: #ffffff; }
        .indb-ai-message-list { display: grid; gap: 9px; margin-bottom: 14px; }
        .indb-ai-message { padding: 10px; border: 1px solid #cbd5e1; border-radius: 9px; background: #f8fafc; }
        .dark .indb-ai-message { border-color: #334155; background: #111c2e; }
        .indb-ai-message.is-assistant { border-color: #34d399; }
        .indb-ai-message > div { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.65; }
        .indb-ai-document { margin: 12px 0; }
        .indb-ai-document pre { max-height: 480px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; border-radius: 9px; background: #0f172a; color: #e2e8f0; font-size: 12px; }
        .indb-ai-search-box { padding: 9px 10px; border-bottom: 1px solid #cbd5e1; }
        .dark .indb-ai-search-box { border-color: #334155; }
        .indb-ai-search-box input { width: 100%; min-height: 38px; padding: 8px 11px; border: 1px solid #94a3b8; border-radius: 8px; background: #ffffff; color: #0f172a; font-size: 12px; }
        .dark .indb-ai-search-box input { border-color: #475569; background: #0f172a; color: #e2e8f0; }
        .indb-ai-academic-inline { margin-top: 9px; padding-top: 8px; border-top: 1px dashed #64748b; }
        .indb-ai-academic-inline summary { cursor: pointer; color: #14b8a6; font-weight: 700; }
        .indb-ai-academic-inline > div { display: grid; gap: 2px; margin-top: 7px; padding: 7px; border-radius: 6px; background: rgba(15, 118, 110, 0.08); }
        .indb-ai-academic-inline span { font-size: 11px; color: #64748b; }
        .indb-ai-academic-search > section { margin: 10px 0; padding: 10px; border-radius: 8px; background: rgba(20, 184, 166, 0.08); }
        .indb-ai-academic-search > section p { margin: 5px 0 0; white-space: pre-wrap; }
        .indb-ai-academic-results { display: grid; gap: 9px; margin: 12px 0; }
        .indb-ai-academic-results > article { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 9px; }
        .dark .indb-ai-academic-results > article { border-color: #334155; }
        .indb-ai-academic-results > article > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #0f766e; color: #ffffff; font-weight: 800; }
        .indb-ai-academic-results p { margin: 5px 0; color: #64748b; font-size: 11px; }
        .indb-ai-academic-results details { margin: 7px 0; }
        .indb-ai-academic-results details div { margin-top: 5px; white-space: pre-wrap; line-height: 1.55; }
        .indb-ai-academic-results a { color: #0d9488; font-weight: 700; }
        .indb-ai-attachment-note { margin: 12px 0; padding: 11px; border: 1px solid #f59e0b; border-radius: 9px; background: rgba(245, 158, 11, 0.08); }
        .indb-ai-attachment-note p { margin: 5px 0 0; font-size: 12px; }
        .indb-status-panel {
            width: min(1240px, 97vw);
            height: min(860px, 92vh);
            min-width: 0;
            min-height: 440px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid #cbd5e1;
            border-radius: 18px;
            background: #f8fafc;
            color: #0f172a;
            box-shadow: 0 30px 90px rgba(2, 6, 23, 0.48), 0 0 0 1px rgba(255,255,255,0.12);
        }
        .dark .indb-status-panel {
            border-color: #334155;
            background: #0b1220;
            color: #e2e8f0;
        }
        .indb-status-header {
            flex: 0 0 auto;
            min-height: 74px;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 13px 16px;
            border-bottom: 1px solid #cbd5e1;
            background: linear-gradient(135deg, #ffffff 0%, #eef2ff 58%, #f5f3ff 100%);
        }
        .dark .indb-status-header {
            border-color: #334155;
            background: linear-gradient(135deg, #111827 0%, #172554 58%, #2e1065 100%);
        }
        .indb-status-mark {
            width: 44px;
            height: 44px;
            flex: 0 0 44px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(99, 102, 241, 0.42);
            border-radius: 13px;
            background: linear-gradient(145deg, #4f46e5, #7c3aed);
            color: #ffffff;
            font-size: 13px;
            font-weight: 900;
            letter-spacing: 0.08em;
            box-shadow: 0 8px 22px rgba(79, 70, 229, 0.28);
        }
        .indb-status-heading {
            min-width: 0;
            flex: 1;
        }
        .indb-status-heading h2 {
            margin: 0;
            color: #0f172a;
            font-size: 18px;
            font-weight: 850;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }
        .dark .indb-status-heading h2 { color: #f8fafc; }
        .indb-status-heading p {
            margin: 4px 0 0;
            color: #64748b;
            font-size: 11px;
            line-height: 1.35;
        }
        .dark .indb-status-heading p { color: #94a3b8; }
        .indb-icon-button {
            width: 34px;
            height: 34px;
            flex: 0 0 34px;
            display: grid;
            place-items: center;
            border: 1px solid #cbd5e1;
            border-radius: 9px;
            background: rgba(255,255,255,0.78);
            color: #475569;
            font-size: 18px;
            font-weight: 700;
            line-height: 1;
            transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
        }
        .dark .indb-icon-button {
            border-color: #475569;
            background: rgba(15,23,42,0.72);
            color: #cbd5e1;
        }
        .indb-icon-button:hover {
            border-color: #818cf8;
            background: #eef2ff;
            color: #4338ca;
            transform: translateY(-1px);
        }
        .dark .indb-icon-button:hover {
            background: #312e81;
            color: #ffffff;
        }
        .indb-status-list {
            flex: 1 1 auto;
            min-height: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            padding: 16px;
            background:
                radial-gradient(circle at 10% 0%, rgba(99,102,241,0.06), transparent 30%),
                #f1f5f9;
            scrollbar-gutter: stable;
        }
        .dark .indb-status-list {
            background:
                radial-gradient(circle at 10% 0%, rgba(99,102,241,0.12), transparent 32%),
                #0b1220;
        }
        .indb-overview-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 14px;
        }
        .indb-stat-card {
            min-width: 0;
            padding: 11px 12px;
            border: 1px solid #dbe3ee;
            border-radius: 12px;
            background: rgba(255,255,255,0.88);
            box-shadow: 0 6px 18px rgba(15,23,42,0.05);
        }
        .dark .indb-stat-card {
            border-color: #26354b;
            background: rgba(15,23,42,0.82);
            box-shadow: 0 8px 24px rgba(2,6,23,0.2);
        }
        .indb-stat-label {
            display: block;
            color: #64748b;
            font-size: 10px;
            font-weight: 750;
            letter-spacing: 0.04em;
        }
        .dark .indb-stat-label { color: #94a3b8; }
        .indb-stat-value {
            display: block;
            margin-top: 3px;
            color: #1e293b;
            font-size: 18px;
            font-weight: 850;
            line-height: 1.15;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .dark .indb-stat-value { color: #f8fafc; }
        .indb-stat-card.is-warning .indb-stat-value { color: #d97706; }
        .dark .indb-stat-card.is-warning .indb-stat-value { color: #fbbf24; }
        .indb-browser-grid {
            flex: 1 1 auto;
            min-height: 0;
            display: grid;
            grid-template-columns: minmax(180px, 0.68fr) minmax(270px, 1fr) minmax(320px, 1.32fr);
            gap: 10px;
            overflow: hidden;
        }
        .indb-store-sidebar,
        .indb-record-pane,
        .indb-detail-pane {
            min-width: 0;
            min-height: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid #dbe3ee;
            border-radius: 13px;
            background: rgba(255,255,255,0.9);
            box-shadow: 0 5px 18px rgba(15,23,42,0.04);
        }
        .dark .indb-store-sidebar,
        .dark .indb-record-pane,
        .dark .indb-detail-pane {
            border-color: #26354b;
            background: rgba(15,23,42,0.82);
        }
        .indb-pane-title {
            min-height: 42px;
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 9px 11px;
            border-bottom: 1px solid #e2e8f0;
            background: rgba(248,250,252,0.96);
        }
        .dark .indb-pane-title { border-color: #26354b; background: rgba(30,41,59,0.8); }
        .indb-pane-title strong { color: #1e293b; font-size: 11px; font-weight: 850; }
        .dark .indb-pane-title strong { color: #f1f5f9; }
        .indb-pane-title span { color: #64748b; font-size: 9px; font-weight: 700; }
        .dark .indb-pane-title span { color: #94a3b8; }
        .indb-store-nav-list,
        .indb-record-scroll,
        .indb-detail-scroll {
            flex: 1 1 auto;
            min-height: 0;
            overflow: auto;
            scrollbar-gutter: stable;
        }
        .indb-store-nav-list { padding: 8px; }
        .indb-store-nav-button {
            width: 100%;
            min-height: 44px;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
            padding: 8px 9px;
            border: 1px solid transparent;
            border-radius: 9px;
            color: #334155;
            text-align: left;
            transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
        }
        .dark .indb-store-nav-button { color: #cbd5e1; }
        .indb-store-nav-button:hover { border-color: #c7d2fe; background: #eef2ff; }
        .dark .indb-store-nav-button:hover { border-color: #4338ca; background: rgba(49,46,129,0.35); }
        .indb-store-nav-button.is-active {
            border-color: #818cf8;
            background: #e0e7ff;
            color: #3730a3;
            box-shadow: inset 3px 0 0 #4f46e5;
        }
        .dark .indb-store-nav-button.is-active {
            border-color: #6366f1;
            background: rgba(49,46,129,0.62);
            color: #e0e7ff;
        }
        .indb-store-nav-copy { min-width: 0; flex: 1; display: block; }
        .indb-store-nav-copy strong,
        .indb-store-nav-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .indb-store-nav-copy strong { font-size: 11px; font-weight: 820; }
        .indb-store-nav-copy small { margin-top: 2px; color: #64748b; font-size: 8px; }
        .dark .indb-store-nav-copy small { color: #94a3b8; }
        .indb-record-scroll { padding: 8px; }
        .indb-record-select-row {
            min-width: 0;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 4px;
            margin-bottom: 7px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            background: #ffffff;
            transition: border-color 120ms ease, box-shadow 120ms ease;
        }
        .dark .indb-record-select-row { border-color: #2b3b52; background: #101a2c; }
        .indb-record-select-row:hover { border-color: #a5b4fc; }
        .indb-record-select-row.is-active { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.14); }
        .indb-record-select {
            min-width: 0;
            min-height: 52px;
            display: flex;
            align-items: center;
            gap: 9px;
            padding: 8px 6px 8px 9px;
            text-align: left;
        }
        .indb-record-copy { min-width: 0; flex: 1; display: block; }
        .indb-record-title,
        .indb-record-meta { display: block; }
        .indb-record-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .indb-record-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .indb-record-thumb {
            width: 48px;
            height: 42px;
            flex: 0 0 48px;
            display: grid;
            place-items: center;
            overflow: hidden;
            border: 1px solid #dbe3ee;
            border-radius: 7px;
            background: #f1f5f9;
        }
        .dark .indb-record-thumb { border-color: #334155; background: #111827; }
        .indb-record-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .indb-record-thumb-empty { color: #64748b; font-size: 8px; font-weight: 850; }
        .indb-record-select-row > .indb-delete-button,
        .indb-record-select-row > .indb-usage-badge { margin-right: 6px; }
        .indb-detail-scroll { padding: 10px; }
        .indb-detail-placeholder {
            min-height: 100%;
            display: grid;
            align-content: center;
            justify-items: center;
            gap: 7px;
            padding: 24px;
            color: #64748b;
            text-align: center;
        }
        .dark .indb-detail-placeholder { color: #94a3b8; }
        .indb-detail-placeholder-icon { font-size: 24px; color: #818cf8; }
        .indb-detail-placeholder strong { color: #334155; font-size: 12px; }
        .dark .indb-detail-placeholder strong { color: #e2e8f0; }
        .indb-detail-placeholder p { margin: 0; font-size: 10px; line-height: 1.5; }
        .indb-detail-content { min-width: 0; }
        .indb-detail-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            padding: 2px 2px 10px;
            border-bottom: 1px solid #e2e8f0;
        }
        .dark .indb-detail-header { border-color: #26354b; }
        .indb-detail-heading { min-width: 0; }
        .indb-detail-store {
            display: inline-flex;
            padding: 2px 6px;
            border-radius: 999px;
            background: #e0e7ff;
            color: #4338ca;
            font-size: 8px;
            font-weight: 850;
            text-transform: uppercase;
        }
        .dark .indb-detail-store { background: rgba(49,46,129,0.58); color: #c7d2fe; }
        .indb-detail-heading h3 {
            margin: 6px 0 0;
            color: #1e293b;
            font-size: 14px;
            font-weight: 850;
            line-height: 1.35;
            overflow-wrap: anywhere;
        }
        .dark .indb-detail-heading h3 { color: #f8fafc; }
        .indb-detail-heading p { margin: 4px 0 0; color: #64748b; font-size: 9px; overflow-wrap: anywhere; }
        .dark .indb-detail-heading p { color: #94a3b8; }
        .indb-detail-delete {
            flex: 0 0 auto;
            padding: 6px 8px;
            border: 1px solid #fecaca;
            border-radius: 8px;
            background: #fff7f7;
            color: #dc2626;
            font-size: 9px;
            font-weight: 800;
        }
        .indb-detail-delete:hover { background: #fef2f2; border-color: #f87171; }
        .dark .indb-detail-delete { border-color: #7f1d1d; background: rgba(69,10,10,0.34); color: #fca5a5; }
        .indb-detail-image {
            height: min(260px, 32vh);
            display: grid;
            place-items: center;
            margin-top: 10px;
            overflow: hidden;
            border: 1px solid #dbe3ee;
            border-radius: 10px;
            background: #f8fafc;
        }
        .dark .indb-detail-image { border-color: #334155; background: #111827; }
        .indb-detail-image img { width: 100%; height: 100%; object-fit: contain; }
        .indb-mermaid-preview {
            margin-top: 10px;
            overflow: hidden;
            border: 1px solid #c7d2fe;
            border-radius: 10px;
            background: #ffffff;
        }
        .dark .indb-mermaid-preview { border-color: #4338ca; background: #0f172a; }
        .indb-mermaid-preview-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 8px 10px;
            border-bottom: 1px solid #e0e7ff;
            background: #eef2ff;
        }
        .dark .indb-mermaid-preview-head { border-color: #3730a3; background: rgba(49,46,129,0.4); }
        .indb-mermaid-preview-head strong { color: #3730a3; font-size: 10px; font-weight: 850; }
        .dark .indb-mermaid-preview-head strong { color: #c7d2fe; }
        .indb-mermaid-preview-head span { color: #64748b; font-size: 9px; }
        .dark .indb-mermaid-preview-head span { color: #94a3b8; }
        .indb-mermaid-preview-head span.is-error { color: #dc2626; }
        .dark .indb-mermaid-preview-head span.is-error { color: #fca5a5; }
        .indb-mermaid-preview-stage { max-height: min(380px, 42vh); overflow: auto; padding: 8px; }
        .indb-mermaid-preview-stage > pre { margin: 0; padding: 12px; color: #475569; font: 10px/1.5 ui-monospace, monospace; white-space: pre-wrap; }
        .indb-mermaid-preview-stage .trt-mermaid-wrapper { margin: 0 !important; }
        .indb-mermaid-preview-stage .trt-mermaid-wrapper[data-mermaid-mode="interactive"] { height: min(340px, 36vh); }
        .indb-detail-fields { display: grid; gap: 7px; margin-top: 10px; }
        .indb-detail-field {
            display: grid;
            grid-template-columns: minmax(74px, 0.32fr) minmax(0, 1fr);
            gap: 8px;
            align-items: start;
            padding: 8px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: rgba(248,250,252,0.8);
        }
        .dark .indb-detail-field { border-color: #2b3b52; background: rgba(16,26,44,0.82); }
        .indb-detail-key { color: #6366f1; font-size: 9px; font-weight: 850; overflow-wrap: anywhere; }
        .dark .indb-detail-key { color: #a5b4fc; }
        .indb-detail-field-value { min-width: 0; }
        .indb-detail-value {
            max-height: 260px;
            margin: 0;
            overflow: auto;
            color: #334155;
            font: 9px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
        }
        .dark .indb-detail-value { color: #cbd5e1; }
        .indb-detail-scalar { color: #334155; font-size: 10px; overflow-wrap: anywhere; }
        .dark .indb-detail-scalar { color: #cbd5e1; }
        .indb-detail-protected { color: #b45309; font-size: 9px; font-weight: 800; }
        .dark .indb-detail-protected { color: #fcd34d; }
        .indb-unused-backdrop {
            padding: 18px;
            background: rgba(2, 6, 23, 0.78);
            backdrop-filter: blur(6px);
        }
        .indb-unused-panel {
            width: min(1180px, 96vw);
            height: min(840px, 92vh);
            min-width: 0;
            min-height: 440px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid #cbd5e1;
            border-radius: 16px;
            background: #f8fafc;
            color: #0f172a;
            box-shadow: 0 30px 90px rgba(2, 6, 23, 0.55);
        }
        .dark .indb-unused-panel { border-color: #334155; background: #0b1220; color: #e2e8f0; }
        .indb-unused-header {
            min-height: 70px;
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            border-bottom: 1px solid #cbd5e1;
            background: linear-gradient(135deg, #ffffff 0%, #fff7ed 58%, #fffbeb 100%);
        }
        .dark .indb-unused-header {
            border-color: #334155;
            background: linear-gradient(135deg, #111827 0%, #431407 58%, #451a03 100%);
        }
        .indb-unused-toolbar,
        .indb-unused-footer {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 14px;
            border-bottom: 1px solid #dbe3ee;
            background: #ffffff;
        }
        .dark .indb-unused-toolbar,
        .dark .indb-unused-footer { border-color: #334155; background: #0f172a; }
        .indb-unused-toolbar > strong { color: #4338ca; font-size: 11px; }
        .dark .indb-unused-toolbar > strong { color: #c7d2fe; }
        .indb-unused-grid {
            flex: 1 1 auto;
            min-height: 0;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
            align-content: start;
            gap: 11px;
            overflow: auto;
            padding: 14px;
            background: #f1f5f9;
            scrollbar-gutter: stable;
        }
        .dark .indb-unused-grid { background: #0b1220; }
        .indb-unused-card {
            position: relative;
            min-width: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 2px solid #dbe3ee;
            border-radius: 12px;
            background: #ffffff;
            cursor: pointer;
            transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
        }
        .dark .indb-unused-card { border-color: #2b3b52; background: #101a2c; }
        .indb-unused-card:hover { transform: translateY(-1px); border-color: #a5b4fc; box-shadow: 0 10px 24px rgba(15,23,42,0.1); }
        .indb-unused-card.is-selected { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.16); }
        .dark .indb-unused-card.is-selected { border-color: #818cf8; }
        .indb-unused-checkbox {
            position: absolute;
            top: 8px;
            left: 8px;
            z-index: 2;
            width: 19px;
            height: 19px;
            accent-color: #4f46e5;
            cursor: pointer;
            filter: drop-shadow(0 1px 2px rgba(2,6,23,.5));
        }
        .indb-unused-thumb {
            height: 142px;
            display: grid;
            place-items: center;
            overflow: hidden;
            border-bottom: 1px solid #e2e8f0;
            background:
                linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
                linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
                linear-gradient(-45deg, transparent 75%, #e2e8f0 75%), #f8fafc;
            background-size: 14px 14px;
            background-position: 0 0, 0 7px, 7px -7px, -7px 0;
        }
        .dark .indb-unused-thumb { border-color: #334155; background-color: #111827; }
        .indb-unused-thumb img { width: 100%; height: 100%; object-fit: contain; }
        .indb-unused-card-copy { min-width: 0; padding: 9px 10px 10px; }
        .indb-unused-card-title { display: block; color: #1e293b; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .dark .indb-unused-card-title { color: #f8fafc; }
        .indb-unused-card-meta { display: block; margin-top: 4px; color: #64748b; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .dark .indb-unused-card-meta { color: #94a3b8; }
        .indb-unused-footer { border-top: 1px solid #cbd5e1; border-bottom: 0; }
        .indb-unused-footer > span { color: #64748b; font-size: 10px; }
        .dark .indb-unused-footer > span { color: #94a3b8; }
        .indb-store-stack { display: grid; gap: 10px; }
        .indb-store-section {
            overflow: hidden;
            border: 1px solid #dbe3ee;
            border-radius: 13px;
            background: rgba(255,255,255,0.86);
            box-shadow: 0 5px 18px rgba(15,23,42,0.04);
        }
        .dark .indb-store-section {
            border-color: #26354b;
            background: rgba(15,23,42,0.78);
        }
        .indb-store-summary {
            min-height: 44px;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 12px;
            list-style: none;
            cursor: pointer;
            user-select: none;
            color: #334155;
            background: rgba(248,250,252,0.92);
        }
        .indb-store-summary::-webkit-details-marker { display: none; }
        .dark .indb-store-summary {
            color: #e2e8f0;
            background: rgba(30,41,59,0.72);
        }
        .indb-store-summary:hover { background: #eef2ff; }
        .dark .indb-store-summary:hover { background: #1e293b; }
        .indb-store-chevron {
            width: 20px;
            height: 20px;
            display: grid;
            place-items: center;
            border-radius: 6px;
            background: #e2e8f0;
            color: #475569;
            font-size: 11px;
            transition: transform 140ms ease;
        }
        .dark .indb-store-chevron { background: #334155; color: #cbd5e1; }
        .indb-store-section[open] .indb-store-chevron { transform: rotate(90deg); }
        .indb-store-title {
            min-width: 0;
            flex: 1;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.01em;
        }
        .indb-store-count {
            min-width: 28px;
            padding: 3px 8px;
            border: 1px solid #c7d2fe;
            border-radius: 999px;
            background: #eef2ff;
            color: #4338ca;
            font-size: 10px;
            font-weight: 850;
            text-align: center;
        }
        .dark .indb-store-count {
            border-color: #4338ca;
            background: rgba(49,46,129,0.45);
            color: #c7d2fe;
        }
        .indb-store-body {
            padding: 10px;
            border-top: 1px solid #e2e8f0;
        }
        .dark .indb-store-body { border-color: #26354b; }
        .indb-record-list { display: grid; gap: 7px; }
        .indb-record-row {
            min-width: 0;
            display: grid;
            grid-template-columns: 72px minmax(0, 1fr) auto;
            align-items: center;
            gap: 10px;
            padding: 9px 10px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            background: #ffffff;
        }
        .dark .indb-record-row {
            border-color: #2b3b52;
            background: #101a2c;
        }
        .indb-record-type {
            color: #6366f1;
            font-size: 9px;
            font-weight: 900;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .dark .indb-record-type { color: #a5b4fc; }
        .indb-record-copy { min-width: 0; }
        .indb-record-title {
            color: #1e293b;
            font-size: 12px;
            font-weight: 760;
            line-height: 1.35;
            overflow-wrap: anywhere;
        }
        .dark .indb-record-title { color: #f1f5f9; }
        .indb-record-meta {
            margin-top: 2px;
            color: #64748b;
            font-size: 10px;
            line-height: 1.35;
            overflow-wrap: anywhere;
        }
        .dark .indb-record-meta { color: #94a3b8; }
        .indb-delete-button {
            width: 30px;
            height: 30px;
            display: grid;
            place-items: center;
            border: 1px solid transparent;
            border-radius: 8px;
            color: #dc2626;
            font-size: 16px;
            font-weight: 800;
        }
        .indb-delete-button:hover { border-color: #fecaca; background: #fef2f2; }
        .dark .indb-delete-button { color: #f87171; }
        .dark .indb-delete-button:hover { border-color: #7f1d1d; background: #450a0a; }
        .indb-image-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 9px;
        }
        .indb-image-card {
            min-width: 0;
            display: grid;
            grid-template-columns: 84px minmax(0, 1fr) auto;
            align-items: center;
            gap: 10px;
            padding: 8px;
            border: 1px solid #dbe3ee;
            border-radius: 12px;
            background: #ffffff;
            transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
        }
        .dark .indb-image-card { border-color: #2b3b52; background: #101a2c; }
        .indb-image-card:hover {
            border-color: #a5b4fc;
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(15,23,42,0.08);
        }
        .dark .indb-image-card:hover { border-color: #6366f1; box-shadow: 0 10px 26px rgba(2,6,23,0.35); }
        .indb-image-thumb {
            width: 84px;
            height: 68px;
            display: grid;
            place-items: center;
            overflow: hidden;
            border: 1px solid #dbe3ee;
            border-radius: 9px;
            background:
                linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
                linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
                linear-gradient(-45deg, transparent 75%, #e2e8f0 75%), #f8fafc;
            background-size: 12px 12px;
            background-position: 0 0, 0 6px, 6px -6px, -6px 0;
        }
        .dark .indb-image-thumb { border-color: #334155; background-color: #111827; }
        .indb-image-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .indb-image-thumb-fallback { color: #64748b; font-size: 9px; font-weight: 800; }
        .indb-image-info { min-width: 0; }
        .indb-image-title {
            color: #1e293b;
            font-size: 11px;
            font-weight: 800;
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .dark .indb-image-title { color: #f8fafc; }
        .indb-image-id {
            margin-top: 3px;
            color: #64748b;
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            font-size: 9px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .dark .indb-image-id { color: #94a3b8; }
        .indb-image-meta { margin-top: 5px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
        .indb-usage-badge {
            display: inline-flex;
            align-items: center;
            padding: 2px 6px;
            border: 1px solid;
            border-radius: 999px;
            font-size: 9px;
            font-weight: 850;
            line-height: 1.2;
        }
        .indb-usage-badge.is-used { border-color: #86efac; background: #f0fdf4; color: #15803d; }
        .indb-usage-badge.is-unused { border-color: #fcd34d; background: #fffbeb; color: #b45309; }
        .dark .indb-usage-badge.is-used { border-color: #166534; background: rgba(20,83,45,0.38); color: #86efac; }
        .dark .indb-usage-badge.is-unused { border-color: #92400e; background: rgba(120,53,15,0.34); color: #fcd34d; }
        .indb-size-label { color: #64748b; font-size: 9px; font-weight: 650; }
        .dark .indb-size-label { color: #94a3b8; }
        .indb-empty-state {
            padding: 22px 14px;
            border: 1px dashed #cbd5e1;
            border-radius: 11px;
            color: #64748b;
            font-size: 11px;
            text-align: center;
        }
        .dark .indb-empty-state { border-color: #334155; color: #94a3b8; }
        .indb-loading-state { min-height: 220px; display: grid; place-items: center; color: #64748b; font-size: 12px; }
        .dark .indb-loading-state { color: #94a3b8; }
        .indb-status-footer {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 11px 14px;
            border-top: 1px solid #cbd5e1;
            background: #ffffff;
        }
        .dark .indb-status-footer { border-color: #334155; background: #0f172a; }
        .indb-footer-group { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
        .indb-footer-group-end { justify-content: flex-end; }
        .indb-action-button {
            min-height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 7px 11px;
            border: 1px solid transparent;
            border-radius: 9px;
            font-size: 11px;
            font-weight: 800;
            line-height: 1;
            white-space: nowrap;
            transition: transform 120ms ease, filter 120ms ease, border-color 120ms ease;
        }
        .indb-action-button:hover { transform: translateY(-1px); filter: brightness(1.04); }
        .indb-action-button:disabled { opacity: 0.48; cursor: not-allowed; transform: none; filter: none; }
        .indb-action-fma { border-color: #c4b5fd; background: #7c3aed; color: #ffffff; }
        .indb-action-clean { border-color: #fcd34d; background: #fffbeb; color: #b45309; }
        .dark .indb-action-clean { border-color: #92400e; background: #451a03; color: #fde68a; }
        .indb-action-backup { border-color: #6ee7b7; background: #059669; color: #ffffff; }
        .indb-action-danger { border-color: #fca5a5; background: #dc2626; color: #ffffff; }
        .indb-action-neutral { border-color: #cbd5e1; background: #ffffff; color: #475569; }
        .dark .indb-action-neutral { border-color: #475569; background: #1e293b; color: #e2e8f0; }
        @media (max-width: 760px) {
            .indb-status-backdrop { padding: 8px; }
            .indb-status-panel { width: calc(100vw - 16px); height: calc(100vh - 16px); min-height: 0; border-radius: 13px; }
            .indb-status-header { min-height: 62px; padding: 9px 10px; gap: 8px; }
            .indb-status-mark { width: 38px; height: 38px; flex-basis: 38px; }
            .indb-status-heading h2 { font-size: 15px; }
            .indb-status-heading p { display: none; }
            .indb-status-list { display: block; overflow: auto; padding: 10px; }
            .indb-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .indb-browser-grid { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; }
            .indb-store-sidebar { max-height: 240px; }
            .indb-record-pane { min-height: 280px; max-height: 42vh; }
            .indb-detail-pane { min-height: 320px; max-height: 48vh; }
            .indb-unused-backdrop { padding: 8px; }
            .indb-unused-panel { width: calc(100vw - 16px); height: calc(100vh - 16px); min-height: 0; }
            .indb-unused-toolbar, .indb-unused-footer { align-items: stretch; flex-direction: column; }
            .indb-unused-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 9px; gap: 8px; }
            .indb-unused-thumb { height: 112px; }
            .indb-image-grid { grid-template-columns: minmax(0, 1fr); }
            .indb-status-footer { align-items: stretch; flex-direction: column; padding: 9px; }
            .indb-footer-group, .indb-footer-group-end { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .indb-footer-group-end .indb-action-neutral { grid-column: 1 / -1; }
        }
