.quick-context-menu {
    position: fixed;
    z-index: 12000;
    min-width: 168px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: rgba(18, 26, 42, 0.96);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.quick-context-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    color: rgba(238, 244, 255, 0.94);
    background: transparent;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.quick-context-menu button:hover {
    background: rgba(96, 165, 250, 0.16);
}

.quick-context-menu i {
    width: 16px;
    color: #93c5fd;
    text-align: center;
}

.quick-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 8, 18, 0.62);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.quick-popup-box {
    width: min(920px, 94vw);
    max-height: min(760px, 88vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    color: rgba(238, 244, 255, 0.94);
    background: linear-gradient(180deg, rgba(22, 33, 53, 0.98), rgba(13, 23, 39, 0.97));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.quick-cabinet-popup {
    width: min(560px, 94vw);
}

.quick-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.quick-popup-header h2 {
    margin: 0;
    color: #f8fbff;
    font-size: 1rem;
    font-weight: 760;
}

.quick-popup-header p {
    margin: 4px 0 0;
    color: rgba(186, 201, 222, 0.72);
    font-size: 0.78rem;
}

.quick-popup-header button {
    flex-shrink: 0;
    padding: 6px 11px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 7px;
    color: rgba(226, 236, 249, 0.9);
    background: rgba(255, 255, 255, 0.04);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
}

.quick-popup-header button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.quick-popup-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-popup-body {
    min-height: 0;
    flex: 1;
}

.quick-list-mode {
    display: block;
}

.quick-detail-mode {
    display: block;
    overflow-y: auto;
}

.quick-company-list-panel {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

.quick-company-list-wrap {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-right: 1px solid rgba(148, 163, 184, 0.14);
}

.quick-search-input {
    width: 100%;
    height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 7px;
    color: rgba(238, 244, 255, 0.95);
    background: rgba(4, 11, 23, 0.38);
    font-family: inherit;
    outline: none;
}

.quick-search-input:focus {
    border-color: rgba(96, 165, 250, 0.55);
}

.quick-company-list,
.quick-popup-list {
    min-height: 0;
    overflow-y: auto;
}

.quick-company-list {
    flex: 1;
}

.quick-company-chip-list {
    flex: 1;
    min-height: 0;
    display: flex;
    align-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    overflow-y: auto;
    padding: 2px 2px 10px;
}

.quick-popup-list {
    padding: 14px;
}

.quick-company-chip {
    max-width: 210px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 7px;
    color: rgba(238, 244, 255, 0.94);
    background: rgba(255, 255, 255, 0.04);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 680;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.quick-company-chip:hover {
    border-color: rgba(96, 165, 250, 0.36);
    background: rgba(96, 165, 250, 0.14);
}

.quick-company-row,
.quick-cabinet-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 11px;
    border: 0;
    border-radius: 7px;
    color: rgba(238, 244, 255, 0.94);
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.quick-company-row:hover,
.quick-company-row.active,
.quick-cabinet-row:hover {
    background: rgba(96, 165, 250, 0.13);
}

.quick-company-row span,
.quick-cabinet-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 680;
}

.quick-company-row em,
.quick-cabinet-row em {
    flex-shrink: 0;
    color: rgba(186, 201, 222, 0.7);
    font-size: 0.75rem;
    font-style: normal;
}

.quick-cabinet-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quick-cabinet-row i {
    color: #facc15;
}

.quick-company-detail-wrap {
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
}

.quick-detail-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.quick-detail-title strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    font-size: 1.06rem;
}

.quick-detail-name {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-detail-name button {
    flex-shrink: 0;
    padding: 5px 10px;
    border: 1px solid rgba(96, 165, 250, 0.36);
    border-radius: 7px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.12);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 720;
    cursor: pointer;
}

.quick-detail-name button:hover {
    color: #eff6ff;
    background: rgba(59, 130, 246, 0.22);
}

.quick-detail-title span {
    flex-shrink: 0;
    color: rgba(186, 201, 222, 0.74);
    font-size: 0.78rem;
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.quick-info-card,
.quick-memo-box {
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.quick-info-card {
    min-height: 74px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 12px;
}

.quick-info-card span,
.quick-memo-box span {
    color: rgba(186, 201, 222, 0.78);
    font-size: 0.72rem;
    font-weight: 680;
}

.quick-info-card strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(248, 251, 255, 0.96);
    font-size: 0.87rem;
    font-weight: 650;
}

.quick-memo-box {
    margin-top: 10px;
    padding: 12px;
}

.quick-memo-box p {
    margin: 7px 0 0;
    color: rgba(238, 244, 255, 0.88);
    font-size: 0.84rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.quick-empty-state,
.quick-loading,
.quick-error {
    display: block;
    padding: 24px 12px;
    color: rgba(186, 201, 222, 0.72);
    font-size: 0.84rem;
    text-align: center;
}

.quick-empty-state.small {
    padding: 16px 8px;
}

.quick-error {
    color: #fca5a5;
}

/* ── Mindmap ─────────────────────────────────────────────────── */
